/* Outlook web application specific API library */
/* Version: 16.0.4017.3000 Build Time: 07/15/2015 */
/*
	Copyright (c) Microsoft Corporation.  All rights reserved.
*/

/*
	Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/

/*!
Copyright (c) Microsoft Corporation.  All rights reserved.
*/
/*!
Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/
var OSF=OSF||{},OfficeExt;(function(n){var t=function(){function n(n){this._internalStorage=n}n.prototype.getItem=function(n){try{return this._internalStorage&&this._internalStorage.getItem(n)}catch(t){return null}};n.prototype.setItem=function(n,t){try{this._internalStorage&&this._internalStorage.setItem(n,t)}catch(i){}};n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(n){}};n.prototype.removeItem=function(n){try{this._internalStorage&&this._internalStorage.removeItem(n)}catch(t){}};n.prototype.getKeysWithPrefix=function(n){var i=[];try{for(var u=this._internalStorage&&this._internalStorage.length||0,t=0;t<u;t++){var r=this._internalStorage.key(t);r.indexOf(n)===0&&i.push(r)}}catch(f){}return i};return n}();n.SafeStorage=t})(OfficeExt||(OfficeExt={}));OSF.OUtil=function(){var u="on",v="configurable",w="writable",f="enumerable",e="undefined",i=!0,n=!1,a=2147483647,t=null,l=-1,b="&_xdm_Info=",k="_xdm_",s="#",o={},d=3e4,h=t,c=t,r=+new Date;function y(){var n=a*Math.random();n^=r^(new Date).getMilliseconds()<<Math.floor(Math.random()*21);return n.toString(16)}function p(){if(!h){try{var n=window.sessionStorage}catch(i){n=t}h=new OfficeExt.SafeStorage(n)}return h}return{set_entropy:function(n){if(typeof n=="string")for(var i=0;i<n.length;i+=4){for(var u=0,t=0;t<4&&i+t<n.length;t++)u=(u<<8)+n.charCodeAt(i+t);r^=u}else r^=typeof n=="number"?n:a*Math.random();r&=a},extend:function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.uber=t.prototype;t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},setNamespace:function(n,t){t&&n&&!t[n]&&(t[n]={})},unsetNamespace:function(n,t){t&&n&&t[n]&&delete t[n]},loadScript:function(r,u,f){if(r&&u){var l=window.document,e=o[r];if(e)e.loaded?u():e.pendingCallbacks.push(u);else{var s=l.createElement("script");s.type="text/javascript";e={loaded:n,pendingCallbacks:[u],timer:t};o[r]=e;var c=function(){if(e.timer!=t){clearTimeout(e.timer);delete e.timer}e.loaded=i;for(var u=e.pendingCallbacks.length,n=0;n<u;n++){var r=e.pendingCallbacks.shift();r()}},h=function(){delete o[r];if(e.timer!=t){clearTimeout(e.timer);delete e.timer}for(var u=e.pendingCallbacks.length,n=0;n<u;n++){var i=e.pendingCallbacks.shift();i()}};s.readyState?s.onreadystatechange=function(){if(s.readyState=="loaded"||s.readyState=="complete"){s.onreadystatechange=t;c()}}:s.onload=c;s.onerror=h;f=f||d;e.timer=setTimeout(h,f);s.src=r;l.getElementsByTagName("head")[0].appendChild(s)}}},loadCSS:function(n){if(n){var i=window.document,t=i.createElement("link");t.type="text/css";t.rel="stylesheet";t.href=n;i.getElementsByTagName("head")[0].appendChild(t)}},parseEnum:function(n,t){var i=t[n.trim()];if(typeof i==e){Sys.Debug.trace("invalid enumeration string:"+n);throw Error.argument("str");}return i},delayExecutionAndCache:function(){var n={calc:arguments[0]};return function(){if(n.calc){n.val=n.calc.apply(this,arguments);delete n.calc}return n.val}},getUniqueId:function(){l=l+1;return l.toString()},formatString:function(){var n=arguments,t=n[0];return t.replace(/{(\d+)}/gm,function(t,i){var r=parseInt(i,10)+1;return n[r]===undefined?"{"+i+"}":n[r]})},generateConversationId:function(){return[y(),y(),(+new Date).toString()].join("_")},getFrameNameAndConversationId:function(n,t){var i=k+n+this.generateConversationId();t.setAttribute("name",i);return this.generateConversationId()},addXdmInfoAsHash:function(n,t){n=n.trim()||"";var i=n.split(s),u=i.shift(),r=i.join(s);return[u,s,r,b,t].join("")},parseXdmInfo:function(n){return OSF.OUtil.parseXdmInfoWithGivenFragment(n,window.location.hash)},parseXdmInfoWithGivenFragment:function(n,i){var e=i.split(b),r=e.length>1?e[e.length-1]:t,o=p();if(!n&&o){var u=window.name.indexOf(k);if(u>-1){var f=window.name.indexOf(";",u);f==-1&&(f=window.name.length);var s=window.name.substring(u,f);r?o.setItem(s,r):r=o.getItem(s)}}return r},getConversationId:function(){var i=window.location.search,n=t;if(i){var r=i.indexOf("&");n=r>0?i.substring(1,r):i.substr(1);if(n&&n.charAt(n.length-1)==="="){n=n.substring(0,n.length-1);n&&(n=decodeURIComponent(n))}}return n},getInfoItems:function(n){var t=n.split("$");typeof t[1]==e&&(t=n.split("|"));return t},getConversationUrl:function(){var t="",r=OSF.OUtil.parseXdmInfo(i);if(r){var n=OSF.OUtil.getInfoItems(r);n!=undefined&&n.length>=3&&(t=n[2])}return t},validateParamObject:function(t,r){var u=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:n},{name:"expectedProperties",type:Object,mayBeNull:n},{name:"callback",type:Function,mayBeNull:i}]);if(u)throw u;for(var f in r){u=Function._validateParameter(t[f],r[f],f);if(u)throw u;}},writeProfilerMark:function(n){if(window.msWriteProfilerMark){window.msWriteProfilerMark(n);typeof Sys!==e&&Sys&&Sys.Debug&&Sys.Debug.trace(n)}},outputDebug:function(n){typeof Sys!==e&&Sys&&Sys.Debug&&Sys.Debug.trace(n)},defineNondefaultProperty:function(n,t,r,u){r=r||{};for(var e in u){var f=u[e];r[f]==undefined&&(r[f]=i)}Object.defineProperty(n,t,r);return n},defineNondefaultProperties:function(n,t,i){t=t||{};for(var r in t)OSF.OUtil.defineNondefaultProperty(n,r,t[r],i);return n},defineEnumerableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[f])},defineEnumerableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[f])},defineMutableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[w,f,v])},defineMutableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[w,f,v])},finalizeProperties:function(t,r){r=r||{};for(var o=Object.getOwnPropertyNames(t),s=o.length,f=0;f<s;f++){var e=o[f],u=Object.getOwnPropertyDescriptor(t,e);u.get||u.set||(u.writable=r.writable||n);u.configurable=r.configurable||n;u.enumerable=r.enumerable||i;Object.defineProperty(t,e,u)}return t},mapList:function(n,t){var i=[];if(n)for(var r in n)i.push(t(n[r]));return i},listContainsKey:function(t,r){for(var u in t)if(r==u)return i;return n},listContainsValue:function(t,r){for(var u in t)if(r==t[u])return i;return n},augmentList:function(n,t){var r=n.push?function(t,i){n.push(i)}:function(t,i){n[t]=i};for(var i in t)r(i,t[i])},redefineList:function(n,t){for(var r in n)delete n[r];for(var i in t)n[i]=t[i]},isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},isFunction:function(n){return Object.prototype.toString.apply(n)==="[object Function]"},isDate:function(n){return Object.prototype.toString.apply(n)==="[object Date]"},addEventListener:function(t,i,r){t.addEventListener?t.addEventListener(i,r,n):Sys.Browser.agent===Sys.Browser.InternetExplorer&&t.attachEvent?t.attachEvent(u+i,r):t[u+i]=r},removeEventListener:function(i,r,f){i.removeEventListener?i.removeEventListener(r,f,n):Sys.Browser.agent===Sys.Browser.InternetExplorer&&i.detachEvent?i.detachEvent(u+r,f):i[u+r]=t},encodeBase64:function(n){if(!n)return n;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=[],i=[],o=0,c,e,s,r,u,f,t,v=n.length;do{c=n.charCodeAt(o++);e=n.charCodeAt(o++);s=n.charCodeAt(o++);t=0;r=c&255;u=c>>8;f=e&255;i[t++]=r>>2;i[t++]=(r&3)<<4|u>>4;i[t++]=(u&15)<<2|f>>6;i[t++]=f&63;if(!isNaN(e)){r=e>>8;u=s&255;f=s>>8;i[t++]=r>>2;i[t++]=(r&3)<<4|u>>4;i[t++]=(u&15)<<2|f>>6;i[t++]=f&63}if(isNaN(e))i[t-1]=64;else if(isNaN(s)){i[t-2]=64;i[t-1]=64}for(var h=0;h<t;h++)l.push(a.charAt(i[h]))}while(o<v);return l.join("")},getSessionStorage:function(){return p()},getLocalStorage:function(){if(!c){try{var n=window.localStorage}catch(i){n=t}c=new OfficeExt.SafeStorage(n)}return c},convertIntToCssHexColor:function(n){return"#"+(Number(n)+16777216).toString(16).slice(-6)},attachClickHandler:function(n,t){n.onclick=function(){t()};n.ontouchend=function(n){t();n.preventDefault()}},getQueryStringParamValue:function(t,i){var u=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:n},{name:"paramName",type:String,mayBeNull:n}]);if(u){Sys.Debug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null.");return""}var r=new RegExp("[\\?&]"+i+"=([^&#]*)","i");if(!r.test(t)){Sys.Debug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found.");return""}return r.exec(t)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?i:n},shallowCopy:function(n){var i=n.constructor();for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}}}();OSF.OUtil.Guid=function(){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var i="",r=+new Date,t=0;t<32&&r>0;t++){(t==8||t==12||t==16||t==20)&&(i+="-");i+=n[r%16];r=Math.floor(r/16)}for(;t<32;t++){(t==8||t==12||t==16||t==20)&&(i+="-");i+=n[Math.floor(Math.random()*16)]}return i}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.InternalPerfMarker={DataCoercionBegin:"Agave.HostCall.CoerceDataStart",DataCoercionEnd:"Agave.HostCall.CoerceDataEnd"};OSF.HostCallPerfMarker={IssueCall:"Agave.HostCall.IssueCall",ReceiveResponse:"Agave.HostCall.ReceiveResponse",RuntimeExceptionRaised:"Agave.HostCall.RuntimeExecptionRaised"};OSF.AgaveHostAction={Select:0,UnSelect:1,CancelDialog:2,InsertAgave:3,CtrlF6In:4,CtrlF6Exit:5,CtrlF6ExitShift:6,SelectWithError:7};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.OfficeAppContext=function(n,t,i,r,u,f,e,o,s,h,c,l,a){var v=this;v._id=n;v._appName=t;v._appVersion=i;v._appUILocale=r;v._dataLocale=u;v._docUrl=f;v._clientMode=e;v._settings=o;v._reason=s;v._osfControlType=h;v._eToken=c;v._correlationId=l;v._appInstanceId=a;v.get_id=function(){return this._id};v.get_appName=function(){return this._appName};v.get_appVersion=function(){return this._appVersion};v.get_appUILocale=function(){return this._appUILocale};v.get_dataLocale=function(){return this._dataLocale};v.get_docUrl=function(){return this._docUrl};v.get_clientMode=function(){return this._clientMode};v.get_bindings=function(){return this._bindings};v.get_settings=function(){return this._settings};v.get_reason=function(){return this._reason};v.get_osfControlType=function(){return this._osfControlType};v.get_eToken=function(){return this._eToken};v.get_correlationId=function(){return this._correlationId};v.get_appInstanceId=function(){return this._appInstanceId}};OSF.AppName={Unsupported:0,Excel:1,Word:2,PowerPoint:4,Outlook:8,ExcelWebApp:16,WordWebApp:32,OutlookWebApp:64,Project:128,AccessWebApp:256,PowerpointWebApp:512,ExcelIOS:1024,Sway:2048,WordIOS:4096,PowerPointIOS:8192,Access:16384,Lync:32768};OSF.OsfControlType={DocumentLevel:0,ContainerLevel:1};OSF.ClientMode={ReadOnly:0,ReadWrite:1};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Client",Microsoft.Office);OSF.OUtil.setNamespace("WebExtension",Microsoft.Office);Microsoft.Office.WebExtension.InitializationReason={Inserted:"inserted",DocumentOpened:"documentOpened"};Microsoft.Office.WebExtension.ValueFormat={Unformatted:"unformatted",Formatted:"formatted"};Microsoft.Office.WebExtension.FilterType={All:"all"};Microsoft.Office.WebExtension.Parameters={BindingType:"bindingType",CoercionType:"coercionType",ValueFormat:"valueFormat",FilterType:"filterType",Columns:"columns",SampleData:"sampleData",GoToType:"goToType",SelectionMode:"selectionMode",Id:"id",PromptText:"promptText",ItemName:"itemName",FailOnCollision:"failOnCollision",StartRow:"startRow",StartColumn:"startColumn",RowCount:"rowCount",ColumnCount:"columnCount",Callback:"callback",AsyncContext:"asyncContext",Data:"data",Rows:"rows",OverwriteIfStale:"overwriteIfStale",FileType:"fileType",EventType:"eventType",Handler:"handler",SliceSize:"sliceSize",SliceIndex:"sliceIndex",ActiveView:"activeView",Status:"status",Xml:"xml",Namespace:"namespace",Prefix:"prefix",XPath:"xPath",TaskId:"taskId",FieldId:"fieldId",FieldValue:"fieldValue",ServerUrl:"serverUrl",ListName:"listName",ResourceId:"resourceId",ViewType:"viewType",ViewName:"viewName",GetRawValue:"getRawValue",CellFormat:"cellFormat",TableOptions:"tableOptions",TaskIndex:"taskIndex",ResourceIndex:"resourceIndex"};OSF.OUtil.setNamespace("DDA",OSF);OSF.DDA.DocumentMode={ReadOnly:1,ReadWrite:0};OSF.DDA.PropertyDescriptors={AsyncResultStatus:"AsyncResultStatus"};OSF.DDA.EventDescriptors={};OSF.DDA.ListDescriptors={};OSF.DDA.getXdmEventName=function(n,t){return t==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||t==Microsoft.Office.WebExtension.EventType.BindingDataChanged?n+"_"+t:t};OSF.DDA.MethodDispId={dispidMethodMin:64,dispidGetSelectedDataMethod:64,dispidSetSelectedDataMethod:65,dispidAddBindingFromSelectionMethod:66,dispidAddBindingFromPromptMethod:67,dispidGetBindingMethod:68,dispidReleaseBindingMethod:69,dispidGetBindingDataMethod:70,dispidSetBindingDataMethod:71,dispidAddRowsMethod:72,dispidClearAllRowsMethod:73,dispidGetAllBindingsMethod:74,dispidLoadSettingsMethod:75,dispidSaveSettingsMethod:76,dispidGetDocumentCopyMethod:77,dispidAddBindingFromNamedItemMethod:78,dispidAddColumnsMethod:79,dispidGetDocumentCopyChunkMethod:80,dispidReleaseDocumentCopyMethod:81,dispidNavigateToMethod:82,dispidGetActiveViewMethod:83,dispidGetDocumentThemeMethod:84,dispidGetOfficeThemeMethod:85,dispidGetFilePropertiesMethod:86,dispidClearFormatsMethod:87,dispidSetTableOptionsMethod:88,dispidSetFormatsMethod:89,dispidExecuteRichApiRequestMethod:93,dispidAppCommandInvocationCompletedMethod:94,dispidAddDataPartMethod:128,dispidGetDataPartByIdMethod:129,dispidGetDataPartsByNamespaceMethod:130,dispidGetDataPartXmlMethod:131,dispidGetDataPartNodesMethod:132,dispidDeleteDataPartMethod:133,dispidGetDataNodeValueMethod:134,dispidGetDataNodeXmlMethod:135,dispidGetDataNodesMethod:136,dispidSetDataNodeValueMethod:137,dispidSetDataNodeXmlMethod:138,dispidAddDataNamespaceMethod:139,dispidGetDataUriByPrefixMethod:140,dispidGetDataPrefixByUriMethod:141,dispidMethodMax:141,dispidGetSelectedTaskMethod:110,dispidGetSelectedResourceMethod:111,dispidGetTaskMethod:112,dispidGetResourceFieldMethod:113,dispidGetWSSUrlMethod:114,dispidGetTaskFieldMethod:115,dispidGetProjectFieldMethod:116,dispidGetSelectedViewMethod:117,dispidGetTaskByIndexMethod:118,dispidGetResourceByIndexMethod:119,dispidSetTaskFieldMethod:120,dispidSetResourceFieldMethod:121,dispidGetMaxTaskIndexMethod:122,dispidGetMaxResourceIndexMethod:123};OSF.DDA.EventDispId={dispidEventMin:0,dispidInitializeEvent:0,dispidSettingsChangedEvent:1,dispidDocumentSelectionChangedEvent:2,dispidBindingSelectionChangedEvent:3,dispidBindingDataChangedEvent:4,dispidDocumentOpenEvent:5,dispidDocumentCloseEvent:6,dispidActiveViewChangedEvent:7,dispidDocumentThemeChangedEvent:8,dispidOfficeThemeChangedEvent:9,dispidActivationStatusChangedEvent:32,dispidAppCommandInvokedEvent:39,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var n={};return{getErrorArgs:function(t){return n[t]||n[this.errorCodes.ooeInternalError]},addErrorMessage:function(t,i){n[t]=i},errorCodes:{ooeSuccess:0,ooeCoercionTypeNotSupported:1e3,ooeGetSelectionNotMatchDataType:1001,ooeCoercionTypeNotMatchBinding:1002,ooeInvalidGetRowColumnCounts:1003,ooeSelectionNotSupportCoercionType:1004,ooeInvalidGetStartRowColumn:1005,ooeNonUniformPartialGetNotSupported:1006,ooeGetDataIsTooLarge:1008,ooeFileTypeNotSupported:1009,ooeGetDataParametersConflict:1010,ooeInvalidGetColumns:1011,ooeInvalidGetRows:1012,ooeInvalidReadForBlankRow:1013,ooeUnsupportedDataObject:2e3,ooeCannotWriteToSelection:2001,ooeDataNotMatchSelection:2002,ooeOverwriteWorksheetData:2003,ooeDataNotMatchBindingSize:2004,ooeInvalidSetStartRowColumn:2005,ooeInvalidDataFormat:2006,ooeDataNotMatchCoercionType:2007,ooeDataNotMatchBindingType:2008,ooeSetDataIsTooLarge:2009,ooeNonUniformPartialSetNotSupported:2010,ooeInvalidSetColumns:2011,ooeInvalidSetRows:2012,ooeSetDataParametersConflict:2013,ooeCellDataAmountBeyondLimits:2014,ooeSelectionCannotBound:3e3,ooeBindingNotExist:3002,ooeBindingToMultipleSelection:3003,ooeInvalidSelectionForBindingType:3004,ooeOperationNotSupportedOnThisBindingType:3005,ooeNamedItemNotFound:3006,ooeMultipleNamedItemFound:3007,ooeInvalidNamedItemForBindingType:3008,ooeUnknownBindingType:3009,ooeOperationNotSupportedOnMatrixData:3010,ooeInvalidColumnsForBinding:3011,ooeSettingNameNotExist:4e3,ooeSettingsCannotSave:4001,ooeSettingsAreStale:4002,ooeOperationNotSupported:5e3,ooeInternalError:5001,ooeDocumentReadOnly:5002,ooeEventHandlerNotExist:5003,ooeInvalidApiCallInContext:5004,ooeShuttingDown:5005,ooeUnsupportedEnumeration:5007,ooeIndexOutOfRange:5008,ooeBrowserAPINotSupported:5009,ooeInvalidParam:5010,ooeRequestTimeout:5011,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeCustomXmlNodeNotFound:6e3,ooeCustomXmlError:6100,ooeNoCapability:7e3,ooeCannotNavTo:7001,ooeSpecifiedIdNotExist:7002,ooeNavOutOfBound:7004,ooeElementMissing:8e3,ooeProtectedError:8001,ooeInvalidCellsValue:8010,ooeInvalidTableOptionValue:8011,ooeInvalidFormatValue:8012,ooeRowIndexOutOfRange:8020,ooeColIndexOutOfRange:8021,ooeFormatValueOutOfRange:8022,ooeCellFormatAmountBeyondLimits:8023,ooeMemoryFileLimit:11e3,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101},initializeErrorMessages:function(t){n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:t.L_DataReadError,message:t.L_InvalidGetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:t.L_DataReadError,message:t.L_InvalidGetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:t.L_DataWriteError,message:t.L_InvalidSetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:t.L_HostError,message:t.L_OperationNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:t.L_InternalError,message:t.L_InternalErrorDescription};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:t.L_ShuttingDown,message:t.L_ShuttingDown};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:t.L_APICallFailed,message:t.L_RequestTimeout};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:t.L_MissingParameter,message:t.L_ElementMissing};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported}}}}();Microsoft.Office.WebExtension.ApplicationMode={WebEditor:"webEditor",WebViewer:"webViewer",Client:"client"};Microsoft.Office.WebExtension.DocumentMode={ReadOnly:"readOnly",ReadWrite:"readWrite"};OSF.NamespaceManager=function(){var t,n=!1;return{enableShortcut:function(){if(!n){window.Office?t=window.Office:OSF.OUtil.setNamespace("Office",window);window.Office=Microsoft.Office.WebExtension;n=!0}},disableShortcut:function(){if(n){t?window.Office=t:OSF.OUtil.unsetNamespace("Office",window);n=!1}}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(n){n?OSF.NamespaceManager.enableShortcut():OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(n,t){var i;if(n&&typeof n=="string"){var r=n.indexOf("#");if(r!=-1){var o=n.substring(0,r),e=n.substring(r+1);switch(o){case"binding":case"bindings":e&&(i=new OSF.DDA.BindingPromise(e))}}}if(i){i.onFail=t;return i}else if(t){var u=typeof t;if(u=="function"){var f={};f[Microsoft.Office.WebExtension.Parameters.Callback]=t;OSF.DDA.issueAsyncResult(f,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext))}else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,u);}};OSF.DDA.Context=function(n,t,i,r,u){var f=this;OSF.OUtil.defineEnumerableProperties(f,{contentLanguage:{value:n.get_dataLocale()},displayLanguage:{value:n.get_appUILocale()}});t&&OSF.OUtil.defineEnumerableProperty(f,"document",{value:t});i&&OSF.OUtil.defineEnumerableProperty(f,"license",{value:i});if(r){var e=r.displayName||"appOM";delete r.displayName;OSF.OUtil.defineEnumerableProperty(f,e,{value:r})}u&&OSF.OUtil.defineEnumerableProperty(f,"officeTheme",{get:function(){return u()}})};OSF.DDA.OutlookContext=function(n,t,i,r,u){OSF.DDA.OutlookContext.uber.constructor.call(this,n,null,i,r,u);t&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:t})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(){};OSF.DDA.Document=function(n,t){var i;switch(n.get_clientMode()){case OSF.ClientMode.ReadOnly:i=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:i=Microsoft.Office.WebExtension.DocumentMode.ReadWrite}t&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:t});OSF.OUtil.defineMutableProperties(this,{mode:{value:i},url:{value:n.get_docUrl()}})};OSF.DDA.JsomDocument=function(n,t,i){var r=this;OSF.DDA.JsomDocument.uber.constructor.call(r,n,i);t&&OSF.OUtil.defineEnumerableProperty(r,"bindings",{get:function(){return t}});var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(r,[u.GetSelectedDataAsync,u.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(r,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged]))};OSF.OUtil.extend(OSF.DDA.JsomDocument,OSF.DDA.Document);OSF.OUtil.defineEnumerableProperty(Microsoft.Office.WebExtension,"context",{get:function(){var n;OSF&&OSF._OfficeAppFactory&&(n=OSF._OfficeAppFactory.getContext());return n}});OSF.DDA.License=function(n){OSF.OUtil.defineEnumerableProperty(this,"value",{value:n})};OSF.OUtil.setNamespace("AsyncResultEnum",OSF.DDA);OSF.DDA.AsyncResultEnum.Properties={Context:"Context",Value:"Value",Status:"Status",Error:"Error"};Microsoft.Office.WebExtension.AsyncResultStatus={Succeeded:"succeeded",Failed:"failed"};OSF.DDA.AsyncResultEnum.ErrorCode={Success:0,Failed:1};OSF.DDA.AsyncResultEnum.ErrorProperties={Name:"Name",Message:"Message",Code:"Code"};OSF.DDA.AsyncMethodNames={};OSF.DDA.AsyncMethodNames.addNames=function(n){for(var t in n){var i={};OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}});OSF.DDA.AsyncMethodNames[t]=i}};OSF.DDA.AsyncMethodCall=function(n,t,i,r,u,f,e){var c="function",o=n.length,s=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,e)});function h(n,t){for(var u in n){var i=n[u],r=t[u];if(i["enum"])switch(typeof r){case"string":if(OSF.OUtil.listContainsValue(i["enum"],r))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;break;default:throw s();}if(i.types&&!OSF.OUtil.listContainsValue(i.types,typeof r))throw s();}}function a(t,i,r){if(t.length<o)throw Error.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(var e=[],u=0;u<o;u++)e.push(t[u]);h(n,e);var l={};for(u=0;u<o;u++){var f=n[u],c=e[u];if(f.verify){var a=f.verify(c,i,r);if(!a)throw s();}l[f.name]=c}return l}function l(n,i,r,u){if(n.length>o+2)throw Error.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(var f,l,v=n.length-1;v>=o;v--){var a=n[v];switch(typeof a){case"object":if(f)throw Error.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else f=a;break;case c:if(l)throw Error.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else l=a;break;default:throw Error.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}f=f||{};for(var y in t)if(!OSF.OUtil.listContainsKey(f,y)){var e=undefined,s=t[y];s.calculate&&i&&(e=s.calculate(i,r,u));e||s.defaultValue===undefined||(e=s.defaultValue);f[y]=e}if(l)if(f[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else f[Microsoft.Office.WebExtension.Parameters.Callback]=l;h(t,f);return f}this.verifyAndExtractCall=function(n,t,r){var e=a(n,t,r),h=l(n,e,t,r),u={};for(var c in e)u[c]=e[c];for(var o in h)u[o]=h[o];for(var s in i)u[s]=i[s](t,r);f&&(u=f(u,t,r));return u};this.processResponse=function(n,t,i,f){var e;e=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?r?r(t,i,f):t:u?u(n,t):OSF.DDA.ErrorCodeManager.getErrorArgs(n);return e};this.getCallArgs=function(n){for(var t,u,r=n.length-1;r>=o;r--){var i=n[r];switch(typeof i){case"object":t=i;break;case c:u=i}}t=t||{};u&&(t[Microsoft.Office.WebExtension.Parameters.Callback]=u);return t}};OSF.DDA.AsyncMethodCallFactory=function(){function n(n){var i=null;if(n){i={};for(var r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value}return i}return{manufacture:function(t){var r=t.supportedOptions?n(t.supportedOptions):[],i=t.privateStateCallbacks?n(t.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(t.requiredArguments||[],r,i,t.onSucceeded,t.onFailed,t.checkCallArgs,t.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(n){OSF.DDA.AsyncMethodCalls[n.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(n)};OSF.DDA.Error=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{name:{value:n},message:{value:t},code:{value:i}})};OSF.DDA.AsyncResult=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{value:{value:n[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:t?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});n[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:n[OSF.DDA.AsyncResultEnum.Properties.Context]});t&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(t[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(n,t,i){var f=n[Microsoft.Office.WebExtension.Parameters.Callback];if(f){var u={};u[OSF.DDA.AsyncResultEnum.Properties.Context]=n[Microsoft.Office.WebExtension.Parameters.AsyncContext];var r;if(t==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)u[OSF.DDA.AsyncResultEnum.Properties.Value]=i;else{r={};i=i||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);r[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;r[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=i.name||i;r[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=i.message||i}f(new OSF.DDA.AsyncResult(u,r))}};OSF.DDA.ListType=function(){var n={};return{setListType:function(t,i){n[t]=i},isListType:function(t){return OSF.OUtil.listContainsKey(n,t)},getDescriptor:function(t){return n[t]}}}();OSF.DDA.HostParameterMap=function(n,t){var c="fromHost",i=this,s="toHost",e=c,u="self",r={};r[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(n){if(n!=null&&n.rows!==undefined){var t={};t[OSF.DDA.TableDataProperties.TableRows]=n.rows;t[OSF.DDA.TableDataProperties.TableHeaders]=n.headers;n=t}return n},fromHost:function(n){return n}};r[Microsoft.Office.WebExtension.Parameters.SampleData]=r[Microsoft.Office.WebExtension.Parameters.Data];function f(i,u){var a=i?{}:undefined;for(var h in i){var s=i[h],o;if(OSF.DDA.ListType.isListType(h)){o=[];for(var v in s)o.push(f(s[v],u))}else if(OSF.OUtil.listContainsKey(r,h))o=r[h][u](s);else if(u==e&&n.preserveNesting(h))o=f(s,u);else{var c=t[h];if(c){var l=c[u];if(l){o=l[s];o===undefined&&(o=s)}}else o=s}a[h]=o}return a}function l(i,r){var o;for(var f in r){var e;e=n.isComplexType(f)?l(i,t[f][s]):i[f];if(e!=undefined){o||(o={});var h=r[f];h==u&&(h=f);o[h]=n.pack(f,e)}}return o}function o(i,r,f){f||(f={});for(var h in r){var a=r[h],s;s=a==u?i:i[a];if(s===null||s===undefined)f[h]=undefined;else{s=n.unpack(h,s);var c;if(n.isComplexType(h)){c=t[h][e];n.preserveNesting(h)?f[h]=o(s,c):o(s,c,f)}else{if(OSF.DDA.ListType.isListType(h)){c={};var v=OSF.DDA.ListType.getDescriptor(h);c[v]=u;for(var l in s)s[l]=o(s[l],c)}f[h]=s}}}return f}function h(n,i,r){var e=t[n][r],u;if(r=="toHost"){var h=f(i,r);u=l(h,e)}else if(r==c){var s=o(i,e);u=f(s,r)}return u}t||(t={});i.addMapping=function(n,i){var f,o;if(i.map){f=i.map;o={};for(var c in f){var l=f[c];l==u&&(l=c);o[l]=c}}else{f=i.toHost;o=i.fromHost}var r=t[n];if(r){var h=r[s];for(var v in h)f[v]=h[v];h=r[e];for(var a in h)o[a]=h[a]}else r=t[n]={};r[s]=f;r[e]=o};i.toHost=function(n,t){return h(n,t,s)};i.fromHost=function(n,t){return h(n,t,e)};i.self=u;i.addComplexType=function(t){n.addComplexType(t)};i.getDynamicType=function(t){return n.getDynamicType(t)};i.setDynamicType=function(t,i){n.setDynamicType(t,i)};i.dynamicTypes=r;i.doMapValues=function(n,t){return f(n,t)}};OSF.DDA.SpecialProcessor=function(n,t){var i=this;i.addComplexType=function(t){n.push(t)};i.getDynamicType=function(n){return t[n]};i.setDynamicType=function(n,i){t[n]=i};i.isComplexType=function(t){return OSF.OUtil.listContainsValue(n,t)};i.isDynamicType=function(n){return OSF.OUtil.listContainsKey(t,n)};i.preserveNesting=function(n){var t=[];OSF.DDA.PropertyDescriptors&&t.push(OSF.DDA.PropertyDescriptors.Subset);OSF.DDA.DataNodeEventProperties&&(t=t.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode]));return OSF.OUtil.listContainsValue(t,n)};i.pack=function(n,i){var r;r=this.isDynamicType(n)?t[n].toHost(i):i;return r};i.unpack=function(n,i){var r;r=this.isDynamicType(n)?t[n].fromHost(i):i;return r}};OSF.DDA.getDecoratedParameterMap=function(n,t){var i=new OSF.DDA.HostParameterMap(n),f=i.self;function r(n){var i=null;if(n){i={};for(var r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value}return i}i.define=function(n){var t={},u=r(n.toHost);if(n.invertible)t.map=u;else if(n.canonical)t.toHost=t.fromHost=u;else{t.toHost=u;t.fromHost=r(n.fromHost)}i.addMapping(n.type,t);n.isComplexType&&i.addComplexType(n.type)};for(var u in t)i.define(t[u]);return i};OSF.OUtil.setNamespace("DispIdHost",OSF.DDA);OSF.DDA.DispIdHost.Methods={InvokeMethod:"invokeMethod",AddEventHandler:"addEventHandler",RemoveEventHandler:"removeEventHandler"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap"};OSF.DDA.DispIdHost.Facade=function(n,t){var r={},u=OSF.DDA.AsyncMethodNames,i=OSF.DDA.MethodDispId,s={GoToByIdAsync:i.dispidNavigateToMethod,GetSelectedDataAsync:i.dispidGetSelectedDataMethod,SetSelectedDataAsync:i.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:i.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:i.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:i.dispidGetDocumentCopyMethod,AddFromSelectionAsync:i.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:i.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:i.dispidAddBindingFromNamedItemMethod,GetAllAsync:i.dispidGetAllBindingsMethod,GetByIdAsync:i.dispidGetBindingMethod,ReleaseByIdAsync:i.dispidReleaseBindingMethod,GetDataAsync:i.dispidGetBindingDataMethod,SetDataAsync:i.dispidSetBindingDataMethod,AddRowsAsync:i.dispidAddRowsMethod,AddColumnsAsync:i.dispidAddColumnsMethod,DeleteAllDataValuesAsync:i.dispidClearAllRowsMethod,RefreshAsync:i.dispidLoadSettingsMethod,SaveAsync:i.dispidSaveSettingsMethod,GetActiveViewAsync:i.dispidGetActiveViewMethod,GetFilePropertiesAsync:i.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:i.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:i.dispidGetDocumentThemeMethod,ClearFormatsAsync:i.dispidClearFormatsMethod,SetTableOptionsAsync:i.dispidSetTableOptionsMethod,SetFormatsAsync:i.dispidSetFormatsMethod,ExecuteRichApiRequestAsync:i.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:i.dispidAppCommandInvocationCompletedMethod,AddDataPartAsync:i.dispidAddDataPartMethod,GetDataPartByIdAsync:i.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:i.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:i.dispidGetDataPartXmlMethod,GetPartNodesAsync:i.dispidGetDataPartNodesMethod,DeleteDataPartAsync:i.dispidDeleteDataPartMethod,GetNodeValueAsync:i.dispidGetDataNodeValueMethod,GetNodeXmlAsync:i.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:i.dispidGetDataNodesMethod,SetNodeValueAsync:i.dispidSetDataNodeValueMethod,SetNodeXmlAsync:i.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:i.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:i.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:i.dispidGetDataPrefixByUriMethod,GetSelectedTask:i.dispidGetSelectedTaskMethod,GetTask:i.dispidGetTaskMethod,GetWSSUrl:i.dispidGetWSSUrlMethod,GetTaskField:i.dispidGetTaskFieldMethod,GetSelectedResource:i.dispidGetSelectedResourceMethod,GetResourceField:i.dispidGetResourceFieldMethod,GetProjectField:i.dispidGetProjectFieldMethod,GetSelectedView:i.dispidGetSelectedViewMethod,GetTaskByIndex:i.dispidGetTaskByIndexMethod,GetResourceByIndex:i.dispidGetResourceByIndexMethod,SetTaskField:i.dispidSetTaskFieldMethod,SetResourceField:i.dispidSetResourceFieldMethod,GetMaxTaskIndex:i.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:i.dispidGetMaxResourceIndexMethod};for(var o in s)u[o]&&(r[u[o].id]=s[o]);u=Microsoft.Office.WebExtension.EventType;i=OSF.DDA.EventDispId;var h={SettingsChanged:i.dispidSettingsChangedEvent,DocumentSelectionChanged:i.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:i.dispidBindingSelectionChangedEvent,BindingDataChanged:i.dispidBindingDataChangedEvent,ActiveViewChanged:i.dispidActiveViewChangedEvent,OfficeThemeChanged:i.dispidOfficeThemeChangedEvent,DocumentThemeChanged:i.dispidDocumentThemeChangedEvent,AppCommandInvoked:i.dispidAppCommandInvokedEvent,TaskSelectionChanged:i.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:i.dispidResourceSelectionChangedEvent,ViewSelectionChanged:i.dispidViewSelectionChangedEvent,DataNodeInserted:i.dispidDataNodeAddedEvent,DataNodeReplaced:i.dispidDataNodeReplacedEvent,DataNodeDeleted:i.dispidDataNodeDeletedEvent};for(var f in h)u[f]&&(r[u[f]]=h[f]);function e(n,t,i,r){if(typeof n=="number"){r||(r=t.getCallArgs(i));OSF.DDA.issueAsyncResult(r,n,OSF.DDA.ErrorCodeManager.getErrorArgs(n))}else throw n;}this[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(i,u,f,o){var s;try{var l=i.id,a=OSF.DDA.AsyncMethodCalls[l];s=a.verifyAndExtractCall(u,f,o);var h=r[l],v=n(l),c;c=t.toHost?t.toHost(h,s):s;v[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:h,hostCallArgs:c,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:function(n,i){var r;r=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?t.fromHost?t.fromHost(h,i):i:i;var u=a.processResponse(n,r,f,s);OSF.DDA.issueAsyncResult(s,n,u)}})}catch(y){e(y,a,u,s)}};this[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(i,u,f){var s,o,l;function a(n){if(n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){var i=u.addEventHandler(o,l);i||(n=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed)}var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(s,n,t)}try{var h=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id];s=h.verifyAndExtractCall(i,f,u);o=s[Microsoft.Office.WebExtension.Parameters.EventType];l=s[Microsoft.Office.WebExtension.Parameters.Handler];if(u.getEventHandlerCount(o)==0){var c=r[o],v=n(o)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];v({eventType:o,dispId:c,targetId:f.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:a,onEvent:function(n){var i=t.fromHost(c,n);u.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(o,f,i))}})}else a(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(y){e(y,h,i,s)}};this[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(t,i,u){var o,f,c;function l(n){var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(o,n,t)}try{var a=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];o=a.verifyAndExtractCall(t,u,i);f=o[Microsoft.Office.WebExtension.Parameters.EventType];c=o[Microsoft.Office.WebExtension.Parameters.Handler];var h,s;if(c===null){s=i.clearEventHandlers(f);h=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}else{s=i.removeEventHandler(f,c);h=s?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist}if(s&&i.getEventHandlerCount(f)==0){var y=r[f],v=n(f)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];v({eventType:f,dispId:y,targetId:u.id||"",onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:l})}else l(h)}catch(p){e(p,a,t,o)}}};OSF.DDA.DispIdHost.addAsyncMethods=function(n,t,i){for(var f in t){var u=t[f],r=u.displayName;n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(t){return function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];r(t,arguments,n,i)}}(u)})}};OSF.DDA.DispIdHost.addEventSupport=function(n,t){var r=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,i=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];i(arguments,t,n)}});n[i]||OSF.OUtil.defineEnumerableProperty(n,i,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];i(arguments,t,n)}})};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Common",Microsoft.Office);(function(n){"use strict";var h=new RegExp('"(\\\\.|[^"\\\\])*"',"g"),c=new RegExp("\\b(true|false|null)\\b","g"),s=new RegExp("-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?","g"),o=new RegExp("[^{:,\\[\\s](?=\\s*\\[)"),f=new RegExp("[^\\s\\[\\]{}:,]"),t="Cannot deserialize. The data does not correspond to valid JSON.";function u(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)}function r(){var n="undefined";return typeof Sys!==n&&typeof Sys.Serialization!==n&&typeof Sys.Serialization.JavaScriptSerializer!==n?Sys.Serialization.JavaScriptSerializer:null}function e(i,r,u){var e;if(!r)return u(i);if(n.JSON&&n.JSON.parse)return n.JSON.parse(i);e=i.replace(h,"[]");e=e.replace(c,"[]");e=e.replace(s,"[]");if(o.test(e))throw t;if(f.test(e))throw t;try{eval("("+i+")")}catch(l){throw t;}}function i(){var n=r(),t;if(n===null||typeof n.deserialize!="function")return!1;if(n.__patchVersion>=1)return!0;t=n.deserialize;n.deserialize=function(n){return e(n,!0,t)};n.__patchVersion=1;return!0}i()||u(n,"load",function(){i()})})(window);Microsoft.Office.Common.InvokeType={async:0,sync:1,asyncRegisterEvent:2,asyncUnregisterEvent:3,syncRegisterEvent:4,syncUnregisterEvent:5};Microsoft.Office.Common.InvokeResultCode={noError:0,errorInRequest:-1,errorHandlingRequest:-2,errorInResponse:-3,errorHandlingResponse:-4,errorHandlingRequestAccessDenied:-5,errorHandlingMethodCallTimedout:-6};Microsoft.Office.Common.MessageType={request:0,response:1};Microsoft.Office.Common.ActionType={invoke:0,registerEvent:1,unregisterEvent:2};Microsoft.Office.Common.ResponseType={forCalling:0,forEventing:1};Microsoft.Office.Common.MethodObject=function(n,t,i){this._method=n;this._invokeType=t;this._blockingOthers=i};Microsoft.Office.Common.MethodObject.prototype={getMethod:function(){return this._method},getInvokeType:function(){return this._invokeType},getBlockingFlag:function(){return this._blockingOthers}};Microsoft.Office.Common.EventMethodObject=function(n,t){this._registerMethodObject=n;this._unregisterMethodObject=t};Microsoft.Office.Common.EventMethodObject.prototype={getRegisterMethodObject:function(){return this._registerMethodObject},getUnregisterMethodObject:function(){return this._unregisterMethodObject}};Microsoft.Office.Common.ServiceEndPoint=function(n){var t=this,i=Function._validateParams(arguments,[{name:"serviceEndPointId",type:String,mayBeNull:!1}]);if(i)throw i;t._methodObjectList={};t._eventHandlerProxyList={};t._Id=n;t._conversations={};t._policyManager=null};Microsoft.Office.Common.ServiceEndPoint.prototype={registerMethod:function(n,t,i,r){var e="invokeType",u=!1,f=Function._validateParams(arguments,[{name:"methodName",type:String,mayBeNull:u},{name:"method",type:Function,mayBeNull:u},{name:e,type:Number,mayBeNull:u},{name:"blockingOthers",type:Boolean,mayBeNull:u}]);if(f)throw f;if(i!==Microsoft.Office.Common.InvokeType.async&&i!==Microsoft.Office.Common.InvokeType.sync)throw Error.argument(e);var o=new Microsoft.Office.Common.MethodObject(t,i,r);this._methodObjectList[n]=o},unregisterMethod:function(n){var t=Function._validateParams(arguments,[{name:"methodName",type:String,mayBeNull:!1}]);if(t)throw t;delete this._methodObjectList[n]},registerEvent:function(n,t,i){var r=!1,u=Function._validateParams(arguments,[{name:"eventName",type:String,mayBeNull:r},{name:"registerMethod",type:Function,mayBeNull:r},{name:"unregisterMethod",type:Function,mayBeNull:r}]);if(u)throw u;var f=new Microsoft.Office.Common.EventMethodObject(new Microsoft.Office.Common.MethodObject(t,Microsoft.Office.Common.InvokeType.syncRegisterEvent,r),new Microsoft.Office.Common.MethodObject(i,Microsoft.Office.Common.InvokeType.syncUnregisterEvent,r));this._methodObjectList[n]=f},registerEventEx:function(n,t,i,r,u){var f=!1,e=Function._validateParams(arguments,[{name:"eventName",type:String,mayBeNull:f},{name:"registerMethod",type:Function,mayBeNull:f},{name:"registerMethodInvokeType",type:Number,mayBeNull:f},{name:"unregisterMethod",type:Function,mayBeNull:f},{name:"unregisterMethodInvokeType",type:Number,mayBeNull:f}]);if(e)throw e;var o=new Microsoft.Office.Common.EventMethodObject(new Microsoft.Office.Common.MethodObject(t,i,f),new Microsoft.Office.Common.MethodObject(r,u,f));this._methodObjectList[n]=o},unregisterEvent:function(n){var t=Function._validateParams(arguments,[{name:"eventName",type:String,mayBeNull:!1}]);if(t)throw t;this.unregisterMethod(n)},registerConversation:function(n,t){var i=Function._validateParams(arguments,[{name:"conversationId",type:String,mayBeNull:!1},{name:"conversationUrl",type:String,mayBeNull:!1,optional:!0}]);if(i)throw i;this._conversations[n]=t?t:!0},unregisterConversation:function(n){var t=Function._validateParams(arguments,[{name:"conversationId",type:String,mayBeNull:!1}]);if(t)throw t;delete this._conversations[n]},setPolicyManager:function(n){var i="policyManager",t=Function._validateParams(arguments,[{name:i,type:Object,mayBeNull:!1}]);if(t)throw t;if(!n.checkPermission)throw Error.argument(i);this._policyManager=n},getPolicyManager:function(){return this._policyManager}};Microsoft.Office.Common.ClientEndPoint=function(n,t,i){var f="targetWindow",r=this,u=Function._validateParams(arguments,[{name:"conversationId",type:String,mayBeNull:!1},{name:f,mayBeNull:!1},{name:"targetUrl",type:String,mayBeNull:!1}]);if(u)throw u;if(!t.postMessage)throw Error.argument(f);r._conversationId=n;r._targetWindow=t;r._targetUrl=i;r._callingIndex=0;r._callbackList={};r._eventHandlerList={}};Microsoft.Office.Common.ClientEndPoint.prototype={invoke:function(n,t,i){var r=this,e=Function._validateParams(arguments,[{name:"targetMethodName",type:String,mayBeNull:!1},{name:"callback",type:Function,mayBeNull:!0},{name:"param",mayBeNull:!0}]);if(e)throw e;var u=r._callingIndex++,h=new Date,f={callback:t,createdOn:h.getTime()};if(i&&typeof i=="object"&&typeof i.__timeout__=="number"){f.timeout=i.__timeout__;delete i.__timeout__}r._callbackList[u]=f;try{var s=new Microsoft.Office.Common.Request(n,Microsoft.Office.Common.ActionType.invoke,r._conversationId,u,i),o=Microsoft.Office.Common.MessagePackager.envelope(s);r._targetWindow.postMessage(o,r._targetUrl);Microsoft.Office.Common.XdmCommunicationManager._startMethodTimeoutTimer()}catch(c){try{t!==null&&t(Microsoft.Office.Common.InvokeResultCode.errorInRequest,c)}finally{delete r._callbackList[u]}}},registerForEvent:function(n,t,i,r){var u=this,e=Function._validateParams(arguments,[{name:"targetEventName",type:String,mayBeNull:!1},{name:"eventHandler",type:Function,mayBeNull:!1},{name:"callback",type:Function,mayBeNull:!0},{name:"data",mayBeNull:!0,optional:!0}]);if(e)throw e;var f=u._callingIndex++,h=new Date;u._callbackList[f]={callback:i,createdOn:h.getTime()};try{var s=new Microsoft.Office.Common.Request(n,Microsoft.Office.Common.ActionType.registerEvent,u._conversationId,f,r),o=Microsoft.Office.Common.MessagePackager.envelope(s);u._targetWindow.postMessage(o,u._targetUrl);Microsoft.Office.Common.XdmCommunicationManager._startMethodTimeoutTimer();u._eventHandlerList[n]=t}catch(c){try{i!==null&&i(Microsoft.Office.Common.InvokeResultCode.errorInRequest,c)}finally{delete u._callbackList[f]}}},unregisterForEvent:function(n,t,i){var r=this,f=Function._validateParams(arguments,[{name:"targetEventName",type:String,mayBeNull:!1},{name:"callback",type:Function,mayBeNull:!0},{name:"data",mayBeNull:!0,optional:!0}]);if(f)throw f;var u=r._callingIndex++,s=new Date;r._callbackList[u]={callback:t,createdOn:s.getTime()};try{var o=new Microsoft.Office.Common.Request(n,Microsoft.Office.Common.ActionType.unregisterEvent,r._conversationId,u,i),e=Microsoft.Office.Common.MessagePackager.envelope(o);r._targetWindow.postMessage(e,r._targetUrl);Microsoft.Office.Common.XdmCommunicationManager._startMethodTimeoutTimer()}catch(h){try{t!==null&&t(Microsoft.Office.Common.InvokeResultCode.errorInRequest,h)}finally{delete r._callbackList[u]}}finally{delete r._eventHandlerList[n]}}};Microsoft.Office.Common.XdmCommunicationManager=function(){var h="channel is not ready.",e="conversationId",v="Unknown conversation Id.",t=!1,n=null,s=[],r=n,g=10,o=t,u=n,it=2e3,y=65e3,p=y,f={},i={},c=t;function tt(n){for(var t in f)if(f[t]._conversations[n])return f[t];Sys.Debug.trace(v);throw Error.argument(e);}function rt(n){var t=i[n];if(!t){Sys.Debug.trace(v);throw Error.argument(e);}return t}function ft(t,i){var u=t._methodObjectList[i._actionName];if(!u){Sys.Debug.trace("The specified method is not registered on service endpoint:"+i._actionName);throw Error.argument("messageObject");}var r=n;r=i._actionType===Microsoft.Office.Common.ActionType.invoke?u:i._actionType===Microsoft.Office.Common.ActionType.registerEvent?u.getRegisterMethodObject():u.getUnregisterMethodObject();return r}function k(n){s.push(n)}function ut(){if(r!==n){if(!o)if(s.length>0){var t=s.shift();o=t.getInvokeBlockingFlag();t.invoke()}else{clearInterval(r);r=n}}else Sys.Debug.trace(h)}function nt(){if(u){var r,o=0,s=new Date,f;for(var c in i){r=i[c];for(var e in r._callbackList){var t=r._callbackList[e];f=t.timeout?t.timeout:p;if(f>=0&&Math.abs(s.getTime()-t.createdOn)>=f)try{t.callback&&t.callback(Microsoft.Office.Common.InvokeResultCode.errorHandlingMethodCallTimedout,n)}finally{delete r._callbackList[e]}else o++}}if(o===0){clearInterval(u);u=n}}else Sys.Debug.trace(h)}function b(){o=t}function w(n){if(window.addEventListener)window.addEventListener("message",n,t);else if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&window.attachEvent)window.attachEvent("onmessage",n);else{Sys.Debug.trace("Browser doesn't support the required API.");throw Error.argument("Browser");}}function l(n,i){var f=t;if(n===!0)return!0;if(!n||!i||!n.length||!i.length)return f;var r,u;r=document.createElement("a");u=document.createElement("a");r.href=n;u.href=i;f=r.hostname==u.hostname&&r.protocol==u.protocol&&r.port==u.port;delete r,u;return f}function d(t){var h="Access Denied";if(t.data!=""){var i;try{i=Microsoft.Office.Common.MessagePackager.unenvelope(t.data)}catch(nt){return}if(typeof i._messageType=="undefined")return;if(i._messageType===Microsoft.Office.Common.MessageType.request){var c=t.origin==n||t.origin=="null"?i._origin:t.origin;try{var u=tt(i._conversationId);if(!l(u._conversations[i._conversationId],t.origin))throw"Failed origin check";var a=u.getPolicyManager();if(a&&!a.checkPermission(i._conversationId,i._actionName,i._data))throw h;var p=ft(u,i),y=new Microsoft.Office.Common.InvokeCompleteCallback(t.source,c,i._actionName,i._conversationId,i._correlationId,b),d=new Microsoft.Office.Common.Invoker(p,i._data,y,u._eventHandlerProxyList,i._conversationId,i._actionName);r==n&&(r=setInterval(ut,g));k(d)}catch(nt){var s=Microsoft.Office.Common.InvokeResultCode.errorHandlingRequest;nt==h&&(s=Microsoft.Office.Common.InvokeResultCode.errorHandlingRequestAccessDenied);var w=new Microsoft.Office.Common.Response(i._actionName,i._conversationId,i._correlationId,s,Microsoft.Office.Common.ResponseType.forCalling,nt),v=Microsoft.Office.Common.MessagePackager.envelope(w);t.source&&t.source.postMessage&&t.source.postMessage(v,c)}}else if(i._messageType===Microsoft.Office.Common.MessageType.response){var f=rt(i._conversationId);if(!l(f._targetUrl,t.origin))throw"Failed orgin check";if(i._responseType===Microsoft.Office.Common.ResponseType.forCalling){var o=f._callbackList[i._correlationId];if(o)try{o.callback&&o.callback(i._errorCode,i._data)}finally{delete f._callbackList[i._correlationId]}}else{var e=f._eventHandlerList[i._actionName];e!==undefined&&e!==n&&e(i._data)}}else return}}function a(){if(!c){w(d);c=!0}}return{connect:function(n,t,r){var u=i[n];if(!u){a();u=new Microsoft.Office.Common.ClientEndPoint(n,t,r);i[n]=u}return u},getClientEndPoint:function(n){var r=Function._validateParams(arguments,[{name:e,type:String,mayBeNull:t}]);if(r)throw r;return i[n]},createServiceEndPoint:function(n){a();var t=new Microsoft.Office.Common.ServiceEndPoint(n);f[n]=t;return t},getServiceEndPoint:function(n){var i=Function._validateParams(arguments,[{name:"serviceEndPointId",type:String,mayBeNull:t}]);if(i)throw i;return f[n]},deleteClientEndPoint:function(n){var r=Function._validateParams(arguments,[{name:e,type:String,mayBeNull:t}]);if(r)throw r;delete i[n]},_setMethodTimeout:function(n){var i=Function._validateParams(arguments,[{name:"methodTimeout",type:Number,mayBeNull:t}]);if(i)throw i;p=n<=0?y:n},_startMethodTimeoutTimer:function(){u||(u=setInterval(nt,it))}}}();Microsoft.Office.Common.Message=function(n,t,i,r,u){var e=!1,f=this,o=Function._validateParams(arguments,[{name:"messageType",type:Number,mayBeNull:e},{name:"actionName",type:String,mayBeNull:e},{name:"conversationId",type:String,mayBeNull:e},{name:"correlationId",mayBeNull:e},{name:"data",mayBeNull:!0,optional:!0}]);if(o)throw o;f._messageType=n;f._actionName=t;f._conversationId=i;f._correlationId=r;f._origin=window.location.href;f._data=typeof u=="undefined"?null:u};Microsoft.Office.Common.Message.prototype={getActionName:function(){return this._actionName},getConversationId:function(){return this._conversationId},getCorrelationId:function(){return this._correlationId},getOrigin:function(){return this._origin},getData:function(){return this._data},getMessageType:function(){return this._messageType}};Microsoft.Office.Common.Request=function(n,t,i,r,u){Microsoft.Office.Common.Request.uber.constructor.call(this,Microsoft.Office.Common.MessageType.request,n,i,r,u);this._actionType=t};OSF.OUtil.extend(Microsoft.Office.Common.Request,Microsoft.Office.Common.Message);Microsoft.Office.Common.Request.prototype.getActionType=function(){return this._actionType};Microsoft.Office.Common.Response=function(n,t,i,r,u,f){Microsoft.Office.Common.Response.uber.constructor.call(this,Microsoft.Office.Common.MessageType.response,n,t,i,f);this._errorCode=r;this._responseType=u};OSF.OUtil.extend(Microsoft.Office.Common.Response,Microsoft.Office.Common.Message);Microsoft.Office.Common.Response.prototype.getErrorCode=function(){return this._errorCode};Microsoft.Office.Common.Response.prototype.getResponseType=function(){return this._responseType};Microsoft.Office.Common.MessagePackager={envelope:function(n){return Sys.Serialization.JavaScriptSerializer.serialize(n)},unenvelope:function(n){return Sys.Serialization.JavaScriptSerializer.deserialize(n,!0)}};Microsoft.Office.Common.ResponseSender=function(n,t,i,r,u,f){var s=!1,e=this,h=Function._validateParams(arguments,[{name:"requesterWindow",mayBeNull:s},{name:"requesterUrl",type:String,mayBeNull:s},{name:"actionName",type:String,mayBeNull:s},{name:"conversationId",type:String,mayBeNull:s},{name:"correlationId",mayBeNull:s},{name:"responsetype",type:Number,maybeNull:s}]);if(h)throw h;e._requesterWindow=n;e._requesterUrl=t;e._actionName=i;e._conversationId=r;e._correlationId=u;e._invokeResultCode=Microsoft.Office.Common.InvokeResultCode.noError;e._responseType=f;var o=e;e._send=function(n){try{var i=new Microsoft.Office.Common.Response(o._actionName,o._conversationId,o._correlationId,o._invokeResultCode,o._responseType,n),t=Microsoft.Office.Common.MessagePackager.envelope(i);o._requesterWindow.postMessage(t,o._requesterUrl)}catch(r){Sys.Debug.trace("ResponseSender._send error:"+r.message)}}};Microsoft.Office.Common.ResponseSender.prototype={getRequesterWindow:function(){return this._requesterWindow},getRequesterUrl:function(){return this._requesterUrl},getActionName:function(){return this._actionName},getConversationId:function(){return this._conversationId},getCorrelationId:function(){return this._correlationId},getSend:function(){return this._send},setResultCode:function(n){this._invokeResultCode=n}};Microsoft.Office.Common.InvokeCompleteCallback=function(n,t,i,r,u,f){var o=this;Microsoft.Office.Common.InvokeCompleteCallback.uber.constructor.call(o,n,t,i,r,u,Microsoft.Office.Common.ResponseType.forCalling);o._postCallbackHandler=f;var e=o;o._send=function(n){try{var i=new Microsoft.Office.Common.Response(e._actionName,e._conversationId,e._correlationId,e._invokeResultCode,e._responseType,n),t=Microsoft.Office.Common.MessagePackager.envelope(i);e._requesterWindow.postMessage(t,e._requesterUrl);e._postCallbackHandler()}catch(r){Sys.Debug.trace("InvokeCompleteCallback._send error:"+r.message)}}};OSF.OUtil.extend(Microsoft.Office.Common.InvokeCompleteCallback,Microsoft.Office.Common.ResponseSender);Microsoft.Office.Common.Invoker=function(n,t,i,r,u,f){var o=!1,e=this,s=Function._validateParams(arguments,[{name:"methodObject",mayBeNull:o},{name:"paramValue",mayBeNull:!0},{name:"invokeCompleteCallback",mayBeNull:o},{name:"eventHandlerProxyList",mayBeNull:!0},{name:"conversationId",type:String,mayBeNull:o},{name:"eventName",type:String,mayBeNull:o}]);if(s)throw s;e._methodObject=n;e._param=t;e._invokeCompleteCallback=i;e._eventHandlerProxyList=r;e._conversationId=u;e._eventName=f};Microsoft.Office.Common.Invoker.prototype={invoke:function(){var n=this;try{var t;switch(n._methodObject.getInvokeType()){case Microsoft.Office.Common.InvokeType.async:n._methodObject.getMethod()(n._param,n._invokeCompleteCallback.getSend());break;case Microsoft.Office.Common.InvokeType.sync:t=n._methodObject.getMethod()(n._param);n._invokeCompleteCallback.getSend()(t);break;case Microsoft.Office.Common.InvokeType.syncRegisterEvent:var r=n._createEventHandlerProxyObject(n._invokeCompleteCallback);t=n._methodObject.getMethod()(r.getSend(),n._param);n._eventHandlerProxyList[n._conversationId+n._eventName]=r.getSend();n._invokeCompleteCallback.getSend()(t);break;case Microsoft.Office.Common.InvokeType.syncUnregisterEvent:var f=n._eventHandlerProxyList[n._conversationId+n._eventName];t=n._methodObject.getMethod()(f,n._param);delete n._eventHandlerProxyList[n._conversationId+n._eventName];n._invokeCompleteCallback.getSend()(t);break;case Microsoft.Office.Common.InvokeType.asyncRegisterEvent:var i=n._createEventHandlerProxyObject(n._invokeCompleteCallback);n._methodObject.getMethod()(i.getSend(),n._invokeCompleteCallback.getSend(),n._param);n._eventHandlerProxyList[n._callerId+n._eventName]=i.getSend();break;case Microsoft.Office.Common.InvokeType.asyncUnregisterEvent:var u=n._eventHandlerProxyList[n._callerId+n._eventName];n._methodObject.getMethod()(u,n._invokeCompleteCallback.getSend(),n._param);delete n._eventHandlerProxyList[n._callerId+n._eventName]}}catch(e){n._invokeCompleteCallback.setResultCode(Microsoft.Office.Common.InvokeResultCode.errorInResponse);n._invokeCompleteCallback.getSend()(e)}},getInvokeBlockingFlag:function(){return this._methodObject.getBlockingFlag()},_createEventHandlerProxyObject:function(n){return new Microsoft.Office.Common.ResponseSender(n.getRequesterWindow(),n.getRequesterUrl(),n.getActionName(),n.getConversationId(),n.getCorrelationId(),Microsoft.Office.Common.ResponseType.forEventing)}};OSF.OUtil.setNamespace("WAC",OSF.DDA);OSF.DDA.WAC.UniqueArguments={Data:"Data",Properties:"Properties",BindingRequest:"DdaBindingsMethod",BindingResponse:"Bindings",SingleBindingResponse:"singleBindingResponse",GetData:"DdaGetBindingData",AddRowsColumns:"DdaAddRowsColumns",SetData:"DdaSetBindingData",ClearFormats:"DdaClearBindingFormats",SetFormats:"DdaSetBindingFormats",SettingsRequest:"DdaSettingsMethod",BindingEventSource:"ddaBinding",ArrayData:"ArrayData"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.WAC);OSF.DDA.WAC.Delegate.SpecialProcessor=function(){var t=[OSF.DDA.WAC.UniqueArguments.SingleBindingResponse,OSF.DDA.WAC.UniqueArguments.BindingRequest,OSF.DDA.WAC.UniqueArguments.BindingResponse,OSF.DDA.WAC.UniqueArguments.GetData,OSF.DDA.WAC.UniqueArguments.AddRowsColumns,OSF.DDA.WAC.UniqueArguments.SetData,OSF.DDA.WAC.UniqueArguments.ClearFormats,OSF.DDA.WAC.UniqueArguments.SetFormats,OSF.DDA.WAC.UniqueArguments.SettingsRequest,OSF.DDA.WAC.UniqueArguments.BindingEventSource],n={};OSF.DDA.WAC.Delegate.SpecialProcessor.uber.constructor.call(this,t,n)};OSF.OUtil.extend(OSF.DDA.WAC.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.WAC.Delegate.ParameterMap=OSF.DDA.getDecoratedParameterMap(new OSF.DDA.WAC.Delegate.SpecialProcessor,[]);OSF.OUtil.setNamespace("WAC",OSF.DDA);OSF.OUtil.setNamespace("Delegate",OSF.DDA.WAC);OSF.DDA.WAC.getDelegateMethods=function(){var n={};n[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.WAC.Delegate.executeAsync;n[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.WAC.Delegate.registerEventAsync;n[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.WAC.Delegate.unregisterEventAsync;return n};OSF.DDA.WAC.Delegate.version=1;OSF.DDA.WAC.Delegate.executeAsync=function(n){n.hostCallArgs||(n.hostCallArgs={});n.hostCallArgs.DdaMethod={ControlId:OSF._OfficeAppFactory.getId(),Version:OSF.DDA.WAC.Delegate.version,DispatchId:n.dispId};n.hostCallArgs.__timeout__=-1;n.onCalling&&n.onCalling();var t=+new Date;OSF.getClientEndPoint().invoke("executeMethod",function(i,r){n.onReceiving&&n.onReceiving();var u;if(i==Microsoft.Office.Common.InvokeResultCode.noError){OSF.DDA.WAC.Delegate.version=r.Version;u=r.Error}else switch(i){case Microsoft.Office.Common.InvokeResultCode.errorHandlingRequestAccessDenied:u=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;default:u=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}n.onComplete&&n.onComplete(u,r);OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,null,Math.abs(+new Date-t),u)},n.hostCallArgs)};OSF.DDA.WAC.Delegate._getOnAfterRegisterEvent=function(n,t){var i=+new Date;return function(r,u){t.onReceiving&&t.onReceiving();var f;if(r!=Microsoft.Office.Common.InvokeResultCode.noError)switch(r){case Microsoft.Office.Common.InvokeResultCode.errorHandlingRequestAccessDenied:f=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;default:f=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}else f=u?u.Error?u.Error:OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;t.onComplete&&t.onComplete(f);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(n,t.dispId,Math.abs(+new Date-i),f)}};OSF.DDA.WAC.Delegate.registerEventAsync=function(n){n.onCalling&&n.onCalling();OSF.getClientEndPoint().registerForEvent(OSF.DDA.getXdmEventName(n.targetId,n.eventType),function(t){n.onEvent&&n.onEvent(t);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},OSF.DDA.WAC.Delegate._getOnAfterRegisterEvent(!0,n),{controlId:OSF._OfficeAppFactory.getId(),eventDispId:n.dispId,targetId:n.targetId})};OSF.DDA.WAC.Delegate.unregisterEventAsync=function(n){n.onCalling&&n.onCalling();OSF.getClientEndPoint().unregisterForEvent(OSF.DDA.getXdmEventName(n.targetId,n.eventType),OSF.DDA.WAC.Delegate._getOnAfterRegisterEvent(!1,n),{controlId:OSF._OfficeAppFactory.getId(),eventDispId:n.dispId,targetId:n.targetId})};(function(){var n="undefined",r=function(){var o=function(n){n&&OSF.OUtil.loadScript(n,function(){Sys.Debug.trace("loaded customized script:"+n)})},f,e,t,i=null,u=OSF.OUtil.parseXdmInfo();if(u){t=OSF.OUtil.getInfoItems(u);if(t&&t.length>=3){f=t[0];e=t[2];i=Microsoft.Office.Common.XdmCommunicationManager.connect(f,window.parent,e)}}var r=null;if(i)try{i.invoke("getCustomizedScriptPathAsync",function(n,t){o(n===0?t:null)},{__timeout__:1e3})}catch(s){Sys.Debug.trace("no script override through cross frame communication.")}else{try{typeof window.external.getCustomizedScriptPath!==n&&(r=window.external.getCustomizedScriptPath())}catch(s){Sys.Debug.trace("no script override through window.external.")}o(r)}},i=function(){var t="function";return typeof Sys!==n&&typeof Type!==n&&Sys.StringBuilder&&typeof Sys.StringBuilder===t&&Type.registerNamespace&&typeof Type.registerNamespace===t&&Type.registerClass&&typeof Type.registerClass===t?!0:!1};if(i())r();else if(typeof Function!==n){var u=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js",t=function(){if(i())r();else if(typeof Function!==n)throw"Not able to load MicrosoftAjax.js.";};OSF._OfficeAppFactory&&OSF._OfficeAppFactory&&OSF._OfficeAppFactory.getLoadScriptHelper&&OSF._OfficeAppFactory.getLoadScriptHelper().isScriptLoading(OSF.ConstantNames.MicrosoftAjaxId)?OSF._OfficeAppFactory.getLoadScriptHelper().waitForScripts([OSF.ConstantNames.MicrosoftAjaxId],t):OSF.OUtil.loadScript(u,t)}})();OSF.InitializationHelper=function(n,t,i,r,u){var f=this;f._hostInfo=n;f._webAppState=t;f._context=i;f._settings=r;f._hostFacade=u;f._initializeSettings=function(n,t){var u,r=n.get_settings(),f=OSF.OUtil.getSessionStorage();if(f){var i=f.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey());if(i)r=JSON?JSON.parse(i):Sys.Serialization.JavaScriptSerializer.deserialize(i,!0);else{i=JSON?JSON.stringify(r):Sys.Serialization.JavaScriptSerializer.serialize(r);f.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),i)}}var e=OSF.DDA.SettingsManager.deserializeSettings(r);u=t?new OSF.DDA.RefreshableSettings(e):new OSF.DDA.Settings(e);return u};var e=function(n){var t=window.open;n.open=function(n,i,r){var u=null;try{u=t(n,i,r)}catch(e){}if(!u){var f={strUrl:n,strWindowName:i,strWindowFeatures:r};OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_openWindowInHost",null,f)}return u}};e(window)};OSF.InitializationHelper.prototype.getAppContext=function(n,t){var i=function(n,i){var r;if(i._appName===OSF.AppName.ExcelWebApp){var e=i._settings;r={};for(var o in e){var u=e[o];r[u[0]]=u[1]}}else r=i._settings;if(n===0&&i._id!=undefined&&i._appName!=undefined&&i._appVersion!=undefined&&i._appUILocale!=undefined&&i._dataLocale!=undefined&&i._docUrl!=undefined&&i._clientMode!=undefined&&i._settings!=undefined&&i._reason!=undefined){var f=new OSF.OfficeAppContext(i._id,i._appName,i._appVersion,i._appUILocale,i._dataLocale,i._docUrl,i._clientMode,r,i._reason,i._osfControlType,i._eToken,i._correlationId,i._id);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(f);t(f)}else throw"Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+n;};this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",i,this._webAppState.id)};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){var r="ContextActivationManager_notifyHost",t=!1,n=this,u=OSF.OUtil.parseXdmInfoWithGivenFragment(t,OSF._OfficeAppFactory.getWindowLocationHash());if(u){var i=OSF.OUtil.getInfoItems(u);if(i!=undefined&&i.length===3){n._webAppState.conversationID=i[0];n._webAppState.id=i[1];n._webAppState.webAppUrl=i[2]}}n._webAppState.clientEndPoint=Microsoft.Office.Common.XdmCommunicationManager.connect(n._webAppState.conversationID,n._webAppState.wnd,n._webAppState.webAppUrl);n._webAppState.serviceEndPoint=Microsoft.Office.Common.XdmCommunicationManager.createServiceEndPoint(n._webAppState.id);var o=n._webAppState.conversationID+OSF.SharedConstants.NotificationConversationIdSuffix;n._webAppState.serviceEndPoint.registerConversation(o,n._webAppState.webAppUrl);var e=function(){if(!n._webAppState.focused){n._webAppState.focused=!0;for(var r=document.querySelectorAll("input,a,button"),t=0;t<r.length;t++){var i=r[t];if(i instanceof HTMLElement){var u=i;u.focus();break}}}},f=function(i){switch(i){case OSF.AgaveHostAction.Select:n._webAppState.focused=!0;break;case OSF.AgaveHostAction.UnSelect:n._webAppState.focused=t;break;case OSF.AgaveHostAction.CtrlF6In:e();default:Sys.Debug.trace("actionId "+i+" notifyAgave is wrong.")}};n._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",f,Microsoft.Office.Common.InvokeType.async,t);OSF.OUtil.addEventListener(window,"focus",function(){n._webAppState.focused||(n._webAppState.focused=!0);n._webAppState.clientEndPoint.invoke(r,null,[n._webAppState.id,OSF.AgaveHostAction.Select])});OSF.OUtil.addEventListener(window,"blur",function(){n._webAppState.focused&&(n._webAppState.focused=t);n._webAppState.clientEndPoint.invoke(r,null,[n._webAppState.id,OSF.AgaveHostAction.UnSelect])});OSF.OUtil.addEventListener(window,"keydown",function(i){if(i.keyCode==117&&i.ctrlKey){i.preventDefault?i.preventDefault():i.returnValue=t;var u=OSF.AgaveHostAction.CtrlF6Exit;i.shiftKey&&(u=OSF.AgaveHostAction.CtrlF6ExitShift);n._webAppState.clientEndPoint.invoke(r,null,[n._webAppState.id,u])}});OSF.OUtil.addEventListener(window,"keypress",function(n){n.keyCode==117&&n.ctrlKey&&(n.preventDefault?n.preventDefault():n.returnValue=t)})};OSF.getClientEndPoint=function(){var n=OSF._OfficeAppFactory.getInitializationHelper();return n._webAppState.clientEndPoint};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(n){var i=new OSF.DDA.License(n.get_eToken());var t=n.get_appName()==OSF.AppName.OutlookWebApp;t?OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(n,this._settings,i,n.appOM)):OSF._OfficeAppFactory.setContext(new OSF.DDA.OutlookContext(n,this._settings,i,n.appOM,OSF.DDA.Theming?OSF.DDA.Theming.getOfficeTheme:null));var r=n.get_reason();Microsoft.Office.WebExtension.initialize(r);t||OfficeJsClient_OutlookWin32.prepareRightBeforeWebExtensionInitialize()};OSF.DDA.SettingsManager={SerializedSettings:"serializedSettings",DateJSONPrefix:"Date(",DataJSONSuffix:")",serializeSettings:function(n){var r={};for(var i in n){var t=n[i];try{t=JSON?JSON.stringify(t,function(n,t){return OSF.OUtil.isDate(this[n])?OSF.DDA.SettingsManager.DateJSONPrefix+this[n].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t}):Sys.Serialization.JavaScriptSerializer.serialize(t);r[i]=t}catch(u){}}return r},deserializeSettings:function(n){var r={};n=n||{};for(var i in n){var t=n[i];try{t=JSON?JSON.parse(t,function(n,t){var i;if(typeof t=="string"&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(-1)===OSF.DDA.SettingsManager.DataJSONSuffix){i=new Date(parseInt(t.slice(5,-1)));if(i)return i}return t}):Sys.Serialization.JavaScriptSerializer.deserialize(t,!0);r[i]=t}catch(u){}}return r}};OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(n,t,i){Type.registerNamespace("Microsoft.Office.WebExtension.MailboxEnums");Microsoft.Office.WebExtension.MailboxEnums.EntityType={MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact",FlightReservations:"flightReservations",ParcelDeliveries:"parcelDeliveries"};Microsoft.Office.WebExtension.MailboxEnums.ItemType={Message:"message",Appointment:"appointment"};Microsoft.Office.WebExtension.MailboxEnums.ResponseType={None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"};Microsoft.Office.WebExtension.MailboxEnums.RecipientType={Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentType={File:"file",Item:"item"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType={ProgressIndicator:"progressIndicator",InformationalMessage:"informationalMessage",ErrorMessage:"errorMessage"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Type.registerNamespace("OSF.DDA");OSF.DDA.OutlookAppOm=function(n,t,i){this.$$d_$2r_0=Function.createDelegate(this,this.$2r_0);this.$$d_$3E_0=Function.createDelegate(this,this.$3E_0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d_$3z_0=Function.createDelegate(this,this.$3z_0);this.$$d_$3x_0=Function.createDelegate(this,this.$3x_0);this.$$d_$4S_0=Function.createDelegate(this,this.$4S_0);this.$$d_$48_0=Function.createDelegate(this,this.$48_0);this.$$d_$45_0=Function.createDelegate(this,this.$45_0);OSF.DDA.OutlookAppOm.$2=this;this.$X_0=n;this.$18_0=i;var u=this;var r=function(){i&&u.$E_0(1,"GetInitialData",null,u.$$d_$45_0)};this.$1t_0()?r():this.$4a_0(r)};OSF.DDA.OutlookAppOm.$G=function(n){if(!n)throw Error.create(_u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};OSF.DDA.OutlookAppOm.$9=function(n,t,i,r){if(n<t||n>i)throw Error.argumentOutOfRange(r);};OSF.DDA.OutlookAppOm.$43=function(n){var t="";if("htmlBody"in n){OSF.DDA.OutlookAppOm.$4t(n.htmlBody);t=n.htmlBody}return t};OSF.DDA.OutlookAppOm.$2F=function(n){var t=[];if("attachments"in n){t=n.attachments;OSF.DDA.OutlookAppOm.$4r(t)}return t};OSF.DDA.OutlookAppOm.$4E=function(n){var t=[];"options"in n&&(t[0]=n.options);"callback"in n&&(t[t.length]=n.callback);return t};OSF.DDA.OutlookAppOm.$30=function(n){var r=new Array(0);if(Array.isInstanceOfType(n))for(var t=0;t<n.length;t++)if(Object.isInstanceOfType(n[t])){var i=n[t];OSF.DDA.OutlookAppOm.$4p(i);r[t]=OSF.DDA.OutlookAppOm.$2y(i)}else throw Error.argument("attachments");return r};OSF.DDA.OutlookAppOm.$4t=function(n){if(!String.isInstanceOfType(n))throw Error.argument("htmlBody");if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("htmlBody");OSF.DDA.OutlookAppOm.$9(n.length,0,OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody")};OSF.DDA.OutlookAppOm.$4r=function(n){if(!Array.isInstanceOfType(n))throw Error.argument("attachments");};OSF.DDA.OutlookAppOm.$4p=function(n){if(!Object.isInstanceOfType(n))throw Error.argument("attachments");if(!("type"in n)||!("name"in n))throw Error.argument("attachments");if(!("url"in n||"itemId"in n))throw Error.argument("attachments");};OSF.DDA.OutlookAppOm.$2y=function(n){var t=null;if(n.type==="file"){var u=n.url;var f=n.name;OSF.DDA.OutlookAppOm.$4s(u,f);t=OSF.DDA.OutlookAppOm.$32(u,f)}else if(n.type==="item"){var i=n.itemId;var r=n.name;OSF.DDA.OutlookAppOm.$4q(i,r);t=OSF.DDA.OutlookAppOm.$33(i,r)}else throw Error.argument("attachments");return t};OSF.DDA.OutlookAppOm.$32=function(n,t){return["file",t,n]};OSF.DDA.OutlookAppOm.$33=function(n,t){return["item",t,n]};OSF.DDA.OutlookAppOm.$4s=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>2048)throw Error.argumentOutOfRange("attachments",n.length,_u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text);OSF.DDA.OutlookAppOm.$2l(t)};OSF.DDA.OutlookAppOm.$4q=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>200)throw Error.argumentOutOfRange("attachments",n.length,_u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text);OSF.DDA.OutlookAppOm.$2l(t)};OSF.DDA.OutlookAppOm.$2l=function(n){if(n.length>255)throw Error.argumentOutOfRange("attachments",n.length,_u.ExtensibilityStrings.l_AttachmentNameTooLong_Text);};OSF.DDA.OutlookAppOm.$T=function(n,t,i){if(Object.getType(n)!==t)throw Error.argumentType(i);};OSF.DDA.OutlookAppOm.$1r=function(n,t,i,r){if(!$h.ScriptHelpers.isNullOrUndefined(n)){OSF.DDA.OutlookAppOm.$T(n,String,r);var u=n;OSF.DDA.OutlookAppOm.$9(u.length,t,i,r)}};OSF.DDA.OutlookAppOm.$2x=function(n,t){var i=null;switch(n){case 1:case 2:case 12:case 3:case 14:case 18:case 26:case 32:case 41:case 34:break;case 4:var r=JSON.stringify(t.customProperties);i=[r];break;case 5:i=[t.body];break;case 8:case 9:i=[t.itemId];break;case 7:i=[OSF.DDA.OutlookAppOm.$1C(t.requiredAttendees),OSF.DDA.OutlookAppOm.$1C(t.optionalAttendees),t.start,t.end,t.location,OSF.DDA.OutlookAppOm.$1C(t.resources),t.subject,t.body];break;case 40:i=[t.marketplaceAssetId,t.consentState];break;case 11:case 10:i=[t.htmlBody];break;case 31:case 30:i=[t.htmlBody,t.attachments];break;case 23:case 13:case 38:case 29:i=[t.data,t.coercionType];break;case 37:case 28:i=[t.coercionType];break;case 17:i=[t.subject];break;case 15:i=[t.recipientField];break;case 22:case 21:i=[t.recipientField,OSF.DDA.OutlookAppOm.$2v(t.recipientArray)];break;case 19:i=[t.itemId,t.name];break;case 16:i=[t.uri,t.name];break;case 20:i=[t.attachmentIndex];break;case 25:i=[t.TimeProperty,t.time];break;case 24:i=[t.TimeProperty];break;case 27:i=[t.location];break;case 33:case 35:i=[t.key,t.type,t.persistent,t.message,t.icon];break;case 36:i=[t.key];break;default:break}return i};OSF.DDA.OutlookAppOm.$1C=function(n){return n?n.join(";"):null};OSF.DDA.OutlookAppOm.$2v=function(n){if(!n)return null;for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=[n[t].address,n[t].name];return i};OSF.DDA.OutlookAppOm.$2n=function(n,t){if($h.ScriptHelpers.isNullOrUndefined(n))return null;OSF.DDA.OutlookAppOm.$T(n,Array,t);var r=n;var u=null;var f=!1;OSF.DDA.OutlookAppOm.$9(r.length,0,OSF.DDA.OutlookAppOm.$2a,String.format("{0}.length",t));for(var e=0;e<r.length;e++)if($h.EmailAddressDetails.isInstanceOfType(r[e])){f=!0;break}f&&(u=[]);for(var i=0;i<r.length;i++)if(f){u[i]=$h.EmailAddressDetails.isInstanceOfType(r[i])?r[i].emailAddress:r[i];OSF.DDA.OutlookAppOm.$T(u[i],String,String.format("{0}[{1}]",t,i))}else OSF.DDA.OutlookAppOm.$T(r[i],String,String.format("{0}[{1}]",t,i));return u};OSF.DDA.OutlookAppOm.prototype={$7_0:null,$J_0:null,$1p_0:null,$1I_0:null,$X_0:null,$18_0:null,$V_0:null,get_clientEndPoint:function(){this.$V_0||(this.$V_0=OSF._OfficeAppFactory.getClientEndPoint());return this.$V_0},set_clientEndPoint:function(n){this.$V_0=n;return n},get_initialData:function(){return this.$7_0},get_$17_0:function(){return this.$X_0.get_appName()},initialize:function(n){var t="itemType";this.$7_0=new $h.InitialData(n);1===n[t]?this.$J_0=new $h.Message(this.$7_0):3===n[t]?this.$J_0=new $h.MeetingRequest(this.$7_0):2===n[t]?this.$J_0=new $h.Appointment(this.$7_0):4===n[t]?this.$J_0=new $h.MessageCompose(this.$7_0):5===n[t]&&(this.$J_0=new $h.AppointmentCompose(this.$7_0));this.$1p_0=new $h.UserProfile(this.$7_0);this.$1I_0=new $h.Diagnostics(this.$7_0,this.$X_0.get_appName());this.$4V_0();$h.InitialData.$1(this,"item",this.$$d_$48_0);$h.InitialData.$1(this,"userProfile",this.$$d_$4S_0);$h.InitialData.$1(this,"diagnostics",this.$$d_$3x_0);$h.InitialData.$1(this,"ewsUrl",this.$$d_$3z_0);OSF.DDA.OutlookAppOm.$2.get_$17_0()===64&&this.$7_0.get_$4e_0()&&(window.open=this.$$d_windowOpenOverrideHandler)},windowOpenOverrideHandler:function(n,t,i,r){this.$E_0(0,"LaunchPalUrl",{launchUrl:n},null)},makeEwsRequestAsync:function(n){for(var r=[],i=1;i<arguments.length;++i)r[i-1]=arguments[i];if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(n.length>OSF.DDA.OutlookAppOm.$2Y)throw Error.argument("data",_u.ExtensibilityStrings.l_EwsRequestOversized_Text);this.$5_0(3,"makeEwsRequestAsync");var u=$h.CommonParameters.parse(r,!0,!0);var t=new $h.EwsRequest(u.$4_0);var f=this;t.onreadystatechange=function(){4===t.get_$1f_1()&&u.$3_0(t.$P_0)};t.send(n)},recordDataPoint:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$E_0(0,"RecordDataPoint",n,null)},recordTrace:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$E_0(0,"RecordTrace",n,null)},trackCtq:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$E_0(0,"TrackCtq",n,null)},convertToLocalClientTime:function(n){var t=new Date(n.getTime());var i=t.getTimezoneOffset()*-1;if(this.$7_0&&this.$7_0.get_$1l_0()){t.setUTCMinutes(t.getUTCMinutes()-i);i=this.$26_0(t);t.setUTCMinutes(t.getUTCMinutes()+i)}var r=this.$1G_0(t);r.timezoneOffset=i;return r},convertToUtcClientTime:function(n){var t=this.$3D_0(n);if(this.$7_0&&this.$7_0.get_$1l_0()){var i=this.$26_0(t);t.setUTCMinutes(t.getUTCMinutes()-i);i=n.timezoneOffset?n.timezoneOffset:t.getTimezoneOffset()*-1;t.setUTCMinutes(t.getUTCMinutes()+i)}return t},getUserIdentityTokenAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this.$5_0(1,"getUserIdentityTokenAsync");var t=$h.CommonParameters.parse(i,!0,!0);this.$2U_0(2,"GetUserIdentityToken",t.$3_0,t.$4_0)},getCallbackTokenAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this.$5_0(1,"getCallbackTokenAsync");var t=$h.CommonParameters.parse(i,!0,!0);this.$2U_0(12,"GetCallbackToken",t.$3_0,t.$4_0)},displayMessageForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.$E_0(8,"DisplayExistingMessageForm",{itemId:n},null)},displayAppointmentForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.$E_0(9,"DisplayExistingAppointmentForm",{itemId:n},null)},RegisterConsentAsync:function(n){if(n!==2&&n!==1&&n)throw Error.argumentOutOfRange("consentState");var t={};t.consentState=n.toString();t.marketplaceAssetId=this.GetMarketplaceAssetId();this.$E_0(40,"RegisterConsentAsync",t,null)},GetIsRead:function(){return this.$7_0.get_$4X_0()},GetConsentMetadata:function(){return this.$7_0.get_$2u_0()},GetEntryPointUrl:function(){return this.$7_0.get_$3I_0()},GetMarketplaceContentMarket:function(){return this.$7_0.get_$4c_0()},GetMarketplaceAssetId:function(){return this.$7_0.get_$4b_0()},createAsyncResult:function(n,t,i,r,u){var e={};var f=null;e[OSF.DDA.AsyncResultEnum.Properties.Value]=n;e[OSF.DDA.AsyncResultEnum.Properties.Context]=r;if(0!==t){f={};var o=$h.OutlookErrorManager.getErrorArgs(i);f[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=o.name;f[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=u?u:o.message;f[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=i}return new OSF.DDA.AsyncResult(e,f)},$5_0:function(n,t){if(this.$7_0.$B_0<n)throw Error.create(String.format(_u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text,t));},$23_0:function(n){this.$24_0(n,!1)},$22_0:function(n){this.$24_0(n,!0)},$24_0:function(n,t){if(String.isInstanceOfType(n))this.$3F_0(n,t);else if(Object.isInstanceOfType(n)&&Object.getTypeName(n)==="Object"){var i={};i=$.extend(!0,i,n);this.$3G_0(i,t)}else throw Error.argumentType();},$3F_0:function(n,t){$h.ScriptHelpers.isNullOrUndefined(n)||OSF.DDA.OutlookAppOm.$9(n.length,0,OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");this.$E_0(t?11:10,t?"DisplayReplyAllForm":"DisplayReplyForm",{htmlBody:n},null)},$3G_0:function(n,t){var u=OSF.DDA.OutlookAppOm.$43(n);var r=OSF.DDA.OutlookAppOm.$2F(n);var i=$h.CommonParameters.parse(OSF.DDA.OutlookAppOm.$4E(n),!1);var f=this;this.$8_0(t?31:30,t?"DisplayReplyAllForm":"DisplayReplyForm",{htmlBody:u,attachments:OSF.DDA.OutlookAppOm.$30(r)},function(n){return n},i.$4_0,i.$3_0)},$8_0:function(n,t,i,r,u,f){var e=this;this.$E_0(n,t,i,function(n,t){if(f){var o=null;if(Object.isInstanceOfType(t)){var i=t;if("error"in i||"data"in i||"errorCode"in i)if(i.error){var s=i.errorCode;o=e.createAsyncResult(null,1,s,u,null)}else{var h=r?r(i.data):i.data;o=e.createAsyncResult(h,0,0,u,null)}}!o&&n&&(o=e.createAsyncResult(null,1,9002,u,null));f(o)}})},$E_0:function(n,t,i,r){if(64===this.$X_0.get_appName())this.get_clientEndPoint().invoke(t,r,i);else if(n){var u=OSF.DDA.OutlookAppOm.$2x(n,i);var f=this;window.external.execute(n,u,function(n,t){if(r){var f=n.toArray();var u=JSON.parse(f[0]);if(Object.isInstanceOfType(u)){var i=u;if(f.length>1&&f[1]){i.error=!0;i.errorCode=f[1]}else i.error=!1;r(t,i)}else if(Number.isInstanceOfType(u)){var e={};e.error=!0;e.errorCode=u;r(t,e)}else throw Error.notImplemented("Return data type from host must be Dictionary or int");}})}else r&&r(-2,null)},$3D_0:function(n){var t=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds?n.milliseconds:0);if(isNaN(t.getTime()))throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);return t},$1G_0:function(n){var t={};t.month=n.getMonth();t.date=n.getDate();t.year=n.getFullYear();t.hours=n.getHours();t.minutes=n.getMinutes();t.seconds=n.getSeconds();t.milliseconds=n.getMilliseconds();return t},$3E_0:function(n){var u=OSF.DDA.OutlookAppOm.$2n(n.requiredAttendees,"requiredAttendees");var r=OSF.DDA.OutlookAppOm.$2n(n.optionalAttendees,"optionalAttendees");OSF.DDA.OutlookAppOm.$1r(n.location,0,OSF.DDA.OutlookAppOm.$2Z,"location");OSF.DDA.OutlookAppOm.$1r(n.body,0,OSF.DDA.OutlookAppOm.maxBodyLength,"body");OSF.DDA.OutlookAppOm.$1r(n.subject,0,OSF.DDA.OutlookAppOm.$2b,"subject");if(!$h.ScriptHelpers.isNullOrUndefined(n.start)){OSF.DDA.OutlookAppOm.$T(n.start,Date,"start");var o=n.start;n.start=o.getTime();if(!$h.ScriptHelpers.isNullOrUndefined(n.end)){OSF.DDA.OutlookAppOm.$T(n.end,Date,"end");var i=n.end;if(i<o)throw Error.argumentOutOfRange("end",i,_u.ExtensibilityStrings.l_InvalidEventDates_Text);n.end=i.getTime()}}var t=null;if(u||r){t={};var s=n;for(var f in s){var e={key:f,value:s[f]};t[e.key]=e.value}u&&(t.requiredAttendees=u);r&&(t.optionalAttendees=r)}this.$E_0(7,"DisplayNewAppointmentForm",t||n,null)},$4V_0:function(){var n=this;$h.Item.isInstanceOfType(this.$J_0)&&(n.displayNewAppointmentForm=this.$$d_$3E_0)},$45_0:function(n,t){if(!n){this.initialize(t);this.displayName="mailbox";window.setTimeout(this.$$d_$2r_0,0)}},$2r_0:function(){this.$18_0()},$2U_0:function(n,t,i,r){if($h.ScriptHelpers.isNullOrUndefined(i))throw Error.argumentNull("callback");var u=this;this.$E_0(n,t,null,function(n,t){var e;if(n)e=u.createAsyncResult(null,1,9017,r,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,n));else{var f=t;e=f.wasSuccessful?u.createAsyncResult(f.token,0,0,r,null):u.createAsyncResult(null,1,f.errorCode,r,f.errorMessage)}i(e)})},$48_0:function(){return this.$J_0},$4S_0:function(){OSF.DDA.OutlookAppOm.$G(this.$7_0.$B_0);return this.$1p_0},$3x_0:function(){return this.$1I_0},$3z_0:function(){OSF.DDA.OutlookAppOm.$G(this.$7_0.$B_0);return this.$7_0.get_$3J_0()},$26_0:function(n){for(var r=this.$7_0.get_$1l_0(),i=0;i<r.length;i++){var t=r[i];var f=parseInt(t.start);var u=parseInt(t.end);if(n.getTime()-f>=0&&n.getTime()-u<0)return parseInt(t.offset)}throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);},$1t_0:function(){var n=!1;try{n=!$h.ScriptHelpers.isNullOrUndefined(_u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(t){}return n},$4a_0:function(n){for(var s=null,l="",a=document.getElementsByTagName("script"),o=a.length-1;o>=0;o--){var i=null;var v=a[o].attributes;if(v){var p=v.getNamedItem("src");p&&(i=p.value);if(i){var y=!1;i=i.toLowerCase();var f=i.indexOf("office_strings.js");if(f<0){f=i.indexOf("office_strings.debug.js");y=!0}if(f>0&&f<i.length){s=i.replace(y?"office_strings.debug.js":"office_strings.js","outlook_strings.js");var r=i.substring(0,f);var u=r.lastIndexOf("/",r.length-2);u===-1&&(u=r.lastIndexOf("\\",r.length-2));u!==-1&&r.length>u+1&&(l=r.substring(0,u+1));break}}}}if(s){var h=document.getElementsByTagName("head")[0];var t=null;var b=this;var e=function(){if(n&&(!t.readyState||t.readyState&&(t.readyState==="loaded"||t.readyState==="complete"))){t.onload=null;t.onreadystatechange=null;n()}};var c=this;var w=function(){if(!c.$1t_0()){var n=l+"en-us/"+"outlook_strings.js";t.onload=null;t.onreadystatechange=null;t=c.$20_0(n);t.onload=e;t.onreadystatechange=e;h.appendChild(t)}};t=this.$20_0(s);t.onload=e;t.onreadystatechange=e;window.setTimeout(w,2e3);h.appendChild(t)}},$20_0:function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;return t}};OSF.DDA.Settings=function(n){this.$v_0=n};OSF.DDA.Settings.$2w=function(n){if(!n)return{};if(OSF.DDA.OutlookAppOm.$2.get_$17_0()===8){var t=n.SettingsKey;if(t)return OSF.DDA.SettingsManager.deserializeSettings(t)}return n};OSF.DDA.Settings.prototype={$v_0:null,$y_0:null,get_$Q_0:function(){if(!this.$y_0){this.$y_0=OSF.DDA.Settings.$2w(this.$v_0);this.$v_0=null}return this.$y_0},get:function(n){return this.get_$Q_0()[n]},set:function(n,t){this.get_$Q_0()[n]=t},remove:function(n){delete this.get_$Q_0()[n]},saveAsync:function(){for(var i=[],t=0;t<arguments.length;++t)i[t]=arguments[t];var n=$h.CommonParameters.parse(i,!1);if(JSON.stringify(OSF.DDA.SettingsManager.serializeSettings(this.get_$Q_0())).length>32768){var r=OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9019,n.$4_0,"");var u=this;window.setTimeout(function(){n.$3_0(r)},0);return}OSF.DDA.OutlookAppOm.$2.get_$17_0()===64?this.$4l_0(n.$3_0,n.$4_0):this.$4k_0(n.$3_0,n.$4_0)},$4k_0:function(n,t){var r=null;try{var f=OSF.DDA.SettingsManager.serializeSettings(this.get_$Q_0());var e=JSON.stringify(f);var u={SettingsKey:e};OSF.DDA.ClientSettingsManager.write(u)}catch(o){r=o}if(n){var i;i=r?OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9019,t,r.message):OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,0,0,t,null);n(i)}},$4l_0:function(n,t){var i=OSF.DDA.SettingsManager.serializeSettings(this.get_$Q_0());var r=this;OSF._OfficeAppFactory.getClientEndPoint().invoke("saveSettingsAsync",function(i,r){if(n){var u;if(i)u=OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9017,t,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,i));else{var f=r;u=f.error?OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,9019,t,f.errorMessage):OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,0,0,t,null)}n(u)}},[i])}};Type.registerNamespace("$h");Type.registerNamespace("Office.cast");$h.Appointment=function(n){this.$$d_$4F_2=Function.createDelegate(this,this.$4F_2);this.$$d_$2N_2=Function.createDelegate(this,this.$2N_2);this.$$d_$o_2=Function.createDelegate(this,this.$o_2);this.$$d_$4L_2=Function.createDelegate(this,this.$4L_2);this.$$d_$1Z_2=Function.createDelegate(this,this.$1Z_2);this.$$d_$1W_2=Function.createDelegate(this,this.$1W_2);this.$$d_$n_2=Function.createDelegate(this,this.$n_2);this.$$d_$1U_2=Function.createDelegate(this,this.$1U_2);this.$$d_$1a_2=Function.createDelegate(this,this.$1a_2);$h.Appointment.initializeBase(this,[n]);$h.InitialData.$1(this,"start",this.$$d_$1a_2);$h.InitialData.$1(this,"end",this.$$d_$1U_2);$h.InitialData.$1(this,"location",this.$$d_$n_2);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$1W_2);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$1Z_2);$h.InitialData.$1(this,"resources",this.$$d_$4L_2);$h.InitialData.$1(this,"subject",this.$$d_$o_2);$h.InitialData.$1(this,"normalizedSubject",this.$$d_$2N_2);$h.InitialData.$1(this,"organizer",this.$$d_$4F_2)};$h.Appointment.prototype={getEntities:function(){return this.$0_0.$m_0()},getEntitiesByType:function(n){return this.$0_0.$2K_0(n)},getRegExMatches:function(){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatches");return this.$0_0.$1Y_0()},getFilteredEntitiesByName:function(n){return this.$0_0.$1V_0(n)},getRegExMatchesByName:function(n){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatchesByName");return this.$0_0.$2R_0(n)},displayReplyForm:function(n){OSF.DDA.OutlookAppOm.$2.$23_0(n)},displayReplyAllForm:function(n){OSF.DDA.OutlookAppOm.$2.$22_0(n)},getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},$1a_2:function(){return this.$0_0.get_$2h_0()},$1U_2:function(){return this.$0_0.get_$25_0()},$n_2:function(){return this.$0_0.get_$2W_0()},$1W_2:function(){return this.$0_0.get_$1A_0()},$1Z_2:function(){return this.$0_0.get_$1m_0()},$4L_2:function(){return this.$0_0.get_$4j_0()},$o_2:function(){return this.$0_0.get_$2k_0()},$2N_2:function(){return this.$0_0.get_$2c_0()},$4F_2:function(){return this.$0_0.get_$4d_0()}};$h.AppointmentCompose=function(n){this.$$d_$n_2=Function.createDelegate(this,this.$n_2);this.$$d_$1U_2=Function.createDelegate(this,this.$1U_2);this.$$d_$1a_2=Function.createDelegate(this,this.$1a_2);this.$$d_$1W_2=Function.createDelegate(this,this.$1W_2);this.$$d_$1Z_2=Function.createDelegate(this,this.$1Z_2);$h.AppointmentCompose.initializeBase(this,[n]);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$1Z_2);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$1W_2);$h.InitialData.$1(this,"start",this.$$d_$1a_2);$h.InitialData.$1(this,"end",this.$$d_$1U_2);$h.InitialData.$1(this,"location",this.$$d_$n_2)};$h.AppointmentCompose.prototype={$w_2:null,$t_2:null,$z_2:null,$j_2:null,$p_2:null,getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},$1Z_2:function(){this.$0_0.$A_0();this.$w_2||(this.$w_2=new $h.ComposeRecipient(0,"requiredAttendees"));return this.$w_2},$1W_2:function(){this.$0_0.$A_0();this.$t_2||(this.$t_2=new $h.ComposeRecipient(1,"optionalAttendees"));return this.$t_2},$1a_2:function(){this.$0_0.$A_0();this.$z_2||(this.$z_2=new $h.ComposeTime(1));return this.$z_2},$1U_2:function(){this.$0_0.$A_0();this.$j_2||(this.$j_2=new $h.ComposeTime(2));return this.$j_2},$n_2:function(){this.$0_0.$A_0();this.$p_2||(this.$p_2=new $h.ComposeLocation);return this.$p_2}};$h.AttachmentConstants=function(){};$h.AttachmentDetails=function(n){this.$$d_$47_0=Function.createDelegate(this,this.$47_0);this.$$d_$3o_0=Function.createDelegate(this,this.$3o_0);this.$$d_$4N_0=Function.createDelegate(this,this.$4N_0);this.$$d_$3u_0=Function.createDelegate(this,this.$3u_0);this.$$d_$4C_0=Function.createDelegate(this,this.$4C_0);this.$$d_$44_0=Function.createDelegate(this,this.$44_0);this.$0_0=n;$h.InitialData.$1(this,"id",this.$$d_$44_0);$h.InitialData.$1(this,"name",this.$$d_$4C_0);$h.InitialData.$1(this,"contentType",this.$$d_$3u_0);$h.InitialData.$1(this,"size",this.$$d_$4N_0);$h.InitialData.$1(this,"attachmentType",this.$$d_$3o_0);$h.InitialData.$1(this,"isInline",this.$$d_$47_0)};$h.AttachmentDetails.prototype={$0_0:null,$44_0:function(){return this.$0_0.id},$4C_0:function(){return this.$0_0.name},$3u_0:function(){return this.$0_0.contentType},$4N_0:function(){return this.$0_0.size},$3o_0:function(){var n=this.$0_0.attachmentType;return n<$h.AttachmentDetails.$19.length?$h.AttachmentDetails.$19[n]:Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File},$47_0:function(){return this.$0_0.isInline}};$h.Body=function(){};$h.Body.$W=function(n,t){var r={data:n};if(t.$S_0&&!$h.ScriptHelpers.isNull(t.$S_0.coercionType)){var i;var f,u;if(!(u=$h.Body.$2m(t.$S_0.coercionType,f={val:i}),i=f.val,u)){t.$3_0&&t.$3_0(OSF.DDA.OutlookAppOm.$2.createAsyncResult(null,1,1e3,t.$4_0,null));return null}r.coercionType=i}else r.coercionType=0;return r};$h.Body.$2m=function(n,t){t.val=undefined;if(n===Microsoft.Office.WebExtension.CoercionType.Html)t.val=3;else if(n===Microsoft.Office.WebExtension.CoercionType.Text)t.val=0;else return!1;return!0};$h.Body.prototype={getAsync:function(){for(var r=[],n=0;n<arguments.length;++n)r[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,"body.getAsync");var t=$h.CommonParameters.parse(r,!0);var i=$h.Body.$W(null,t);i&&OSF.DDA.OutlookAppOm.$2.$8_0(37,"GetBodyAsync",i,null,t.$4_0,t.$3_0)}};$h.ComposeBody=function(){$h.ComposeBody.initializeBase(this)};$h.ComposeBody.prototype={getTypeAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,"body.getTypeAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(14,"GetBodyTypeAsync",null,null,t.$4_0,t.$3_0)},setSelectedDataAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"body.setSelectedDataAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.Body.$W(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(13,"BodySetSelectedDataAsync",r,null,i.$4_0,i.$3_0)},prependAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"body.prependAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.Body.$W(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(23,"BodyPrependAsync",r,null,i.$4_0,i.$3_0)},setAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"body.setAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.Body.$W(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(38,"SetBodyAsync",r,null,i.$4_0,i.$3_0)}};$h.ComposeItem=function(n){this.$$d_$2G_1=Function.createDelegate(this,this.$2G_1);this.$$d_$o_1=Function.createDelegate(this,this.$o_1);$h.ComposeItem.initializeBase(this,[n]);$h.InitialData.$1(this,"subject",this.$$d_$o_1);$h.InitialData.$1(this,"body",this.$$d_$2G_1)};$h.ComposeItem.prototype={$10_1:null,$H_1:null,addFileAttachmentAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$5_0(2,"addFileAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("uri");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");OSF.DDA.OutlookAppOm.$9(n.length,0,2048,"uri");OSF.DDA.OutlookAppOm.$9(t.length,0,255,"attachmentName");var r=$h.CommonParameters.parse(u,!1);var f={uri:n,name:t,__timeout__:6e5};OSF.DDA.OutlookAppOm.$2.$8_0(16,"AddFileAttachmentAsync",f,null,r.$4_0,r.$3_0)},addItemAttachmentAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];OSF.DDA.OutlookAppOm.$2.$5_0(2,"addItemAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("itemId");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");OSF.DDA.OutlookAppOm.$9(n.length,0,200,"itemId");OSF.DDA.OutlookAppOm.$9(t.length,0,255,"attachmentName");var r=$h.CommonParameters.parse(u,!1);var f={itemId:n,name:t,__timeout__:6e5};OSF.DDA.OutlookAppOm.$2.$8_0(19,"AddItemAttachmentAsync",f,null,r.$4_0,r.$3_0)},removeAttachmentAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"removeAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentId");OSF.DDA.OutlookAppOm.$9(n.length,0,200,"attachmentId");var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$2.$8_0(20,"RemoveAttachmentAsync",{attachmentIndex:n},null,i.$4_0,i.$3_0)},getSelectedDataAsync:function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(1,"getSelectedDataAsync");var e=$h.CommonParameters.parse(f,!0);var i;var u,r;if(n!==Microsoft.Office.WebExtension.CoercionType.Html&&n!==Microsoft.Office.WebExtension.CoercionType.Text||!(r=$h.Body.$2m(n,u={val:i}),i=u.val,r))throw Error.argument("coercionType");var o={coercionType:i};OSF.DDA.OutlookAppOm.$2.$8_0(28,"GetSelectedDataAsync",o,null,e.$4_0,e.$3_0)},setSelectedDataAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"setSelectedDataAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);OSF.DDA.OutlookAppOm.$9(n.length,0,1e6,"data");var r=$h.Body.$W(n,i);r&&OSF.DDA.OutlookAppOm.$2.$8_0(29,"SetSelectedDataAsync",r,null,i.$4_0,i.$3_0)},close:function(){OSF.DDA.OutlookAppOm.$2.$8_0(41,"Close",null,null,null,null)},$2G_1:function(){this.$0_0.$A_0();this.$H_1||(this.$H_1=new $h.ComposeBody);return this.$H_1},$o_1:function(){this.$0_0.$A_0();this.$10_1||(this.$10_1=new $h.ComposeSubject);return this.$10_1},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(2,"saveAsync");var t=$h.CommonParameters.parse(i,!1);OSF.DDA.OutlookAppOm.$2.$8_0(32,"SaveAsync",null,null,t.$4_0,t.$3_0)}};$h.ComposeRecipient=function(n,t){this.$14_0=n;this.$Y_0=t};$h.ComposeRecipient.$1k=function(n,t){if(!n&&!t)throw Error.argument("recipients");if(n&&n.length>255)throw Error.argumentOutOfRange("recipients",n.length,_u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(t&&t.length>571)throw Error.argumentOutOfRange("recipients",t.length,_u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};$h.ComposeRecipient.$3n=function(n){for(var r=n,i=[],t=0;t<r.length;t++){var u=new $h.EmailAddressDetails(r[t]);i[t]=u}return i};$h.ComposeRecipient.$1E=function(n,t){return{address:n,name:t}};$h.ComposeRecipient.prototype={$Y_0:null,$14_0:0,getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$5_0(1,this.$Y_0+".getAsync");OSF.DDA.OutlookAppOm.$2.$8_0(15,"GetRecipientsAsync",{recipientField:this.$14_0},$h.ComposeRecipient.$3n,t.$4_0,t.$3_0)},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,this.$Y_0+".setAsync");this.setAddHelper(n,i,!0)},addAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,this.$Y_0+".addAsync");this.setAddHelper(n,i,!1)},setAddHelper:function(n,t,i){OSF.DDA.OutlookAppOm.$9(n.length,0,100,"recipients");var s=$h.CommonParameters.parse(t,!1);var f=[];if(Array.isInstanceOfType(n))for(var r=0;r<n.length;r++)if(String.isInstanceOfType(n[r])){$h.ComposeRecipient.$1k(n[r],n[r]);f[r]=$h.ComposeRecipient.$1E(n[r],n[r])}else if($h.EmailAddressDetails.isInstanceOfType(n[r])){var u=n[r];$h.ComposeRecipient.$1k(u.displayName,u.emailAddress);f[r]=$h.ComposeRecipient.$1E(u.emailAddress,u.displayName)}else if(Object.isInstanceOfType(n[r])){var h=n[r];var e=h.emailAddress;var o=h.displayName;$h.ComposeRecipient.$1k(o,e);f[r]=$h.ComposeRecipient.$1E(e,o)}else throw Error.argument("recipients");else throw Error.argument("recipients");var c=this;OSF.DDA.OutlookAppOm.$2.$8_0(i?21:22,i?"SetRecipientsAsync":"AddRecipientsAsync",{recipientField:this.$14_0,recipientArray:f},function(n){return n},s.$4_0,s.$3_0)}};$h.ComposeRecipient.RecipientField=function(){};$h.ComposeRecipient.RecipientField.prototype={to:0,cc:1,bcc:2,requiredAttendees:0,optionalAttendees:1};$h.ComposeRecipient.RecipientField.registerEnum("$h.ComposeRecipient.RecipientField",!1);$h.ComposeLocation=function(){};$h.ComposeLocation.prototype={getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,"location.getAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(26,"GetLocationAsync",null,null,t.$4_0,t.$3_0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,"location.setAsync");var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$9(n.length,0,255,"location");OSF.DDA.OutlookAppOm.$2.$8_0(27,"SetLocationAsync",{location:n},null,i.$4_0,i.$3_0)}};$h.ComposeSubject=function(){};$h.ComposeSubject.prototype={getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$5_0(1,"subject.getAsync");OSF.DDA.OutlookAppOm.$2.$8_0(18,"GetSubjectAsync",null,null,t.$4_0,t.$3_0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$2.$5_0(2,"subject.setAsync");if(!String.isInstanceOfType(n))throw Error.argument("data");OSF.DDA.OutlookAppOm.$9(n.length,0,255,"data");OSF.DDA.OutlookAppOm.$2.$8_0(17,"SetSubjectAsync",{subject:n},null,i.$4_0,i.$3_0)}};$h.ComposeTime=function(n){this.$$d_$4u_0=Function.createDelegate(this,this.$4u_0);this.$Z_0=n};$h.ComposeTime.prototype={$Z_0:0,getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(1,this.$2P_0()+".getAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(24,"GetTimeAsync",{TimeProperty:this.$Z_0},this.$$d_$4u_0,t.$4_0,t.$3_0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(2,this.$2P_0()+".setAsync");if(!Date.isInstanceOfType(n))throw Error.argumentType("dateTime",Object.getType(n),Date);if(isNaN(n.getTime()))throw Error.argument("dateTime");if(n.getTime()<-864e13||n.getTime()>864e13)throw Error.argumentOutOfRange("dateTime");var i=$h.CommonParameters.parse(r,!1);OSF.DDA.OutlookAppOm.$2.$8_0(25,"SetTimeAsync",{TimeProperty:this.$Z_0,time:n.getTime()},null,i.$4_0,i.$3_0)},$4u_0:function(n){var t=n;return new Date(t)},$2P_0:function(){return this.$Z_0===1?"start":"end"}};$h.ComposeTime.TimeType=function(){};$h.ComposeTime.TimeType.prototype={start:1,end:2};$h.ComposeTime.TimeType.registerEnum("$h.ComposeTime.TimeType",!1);$h.Contact=function(n){this.$$d_$3t_0=Function.createDelegate(this,this.$3t_0);this.$$d_$1Q_0=Function.createDelegate(this,this.$1Q_0);this.$$d_$1b_0=Function.createDelegate(this,this.$1b_0);this.$$d_$1T_0=Function.createDelegate(this,this.$1T_0);this.$$d_$1X_0=Function.createDelegate(this,this.$1X_0);this.$$d_$3r_0=Function.createDelegate(this,this.$3r_0);this.$$d_$4I_0=Function.createDelegate(this,this.$4I_0);this.$0_0=n;$h.InitialData.$1(this,"personName",this.$$d_$4I_0);$h.InitialData.$1(this,"businessName",this.$$d_$3r_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$1X_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$1T_0);$h.InitialData.$1(this,"urls",this.$$d_$1b_0);$h.InitialData.$1(this,"addresses",this.$$d_$1Q_0);$h.InitialData.$1(this,"contactString",this.$$d_$3t_0)};$h.Contact.prototype={$0_0:null,$K_0:null,$4I_0:function(){return this.$0_0.PersonName},$3r_0:function(){return this.$0_0.BusinessName},$1Q_0:function(){return $h.Entities.$I(this.$0_0,"Addresses")},$1T_0:function(){return $h.Entities.$I(this.$0_0,"EmailAddresses")},$1b_0:function(){return $h.Entities.$I(this.$0_0,"Urls")},$1X_0:function(){if(!this.$K_0){var n=this;this.$K_0=$h.Entities.$D($h.PhoneNumber,this.$0_0,"PhoneNumbers",function(n){return new $h.PhoneNumber(n)})}return this.$K_0},$3t_0:function(){return this.$0_0.ContactString}};$h.CustomProperties=function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(Array.isInstanceOfType(n)){var t=n;if(t.length>0)this.$0_0=t[0];else throw Error.argument("data");}else this.$0_0=n};$h.CustomProperties.prototype={$0_0:null,get:function(n){var i=this.$0_0[n];if(typeof i=="string"){var t=i;if(t.length>6&&t.startsWith("Date(")&&t.endsWith(")")){var f=t.substring(5,t.length-1);var r=parseInt(f);if(!isNaN(r)){var u=new Date(r);u&&(i=u)}}}return i},set:function(n,t){OSF.OUtil.isDate(t)&&(t="Date("+t.getTime()+")");this.$0_0[n]=t},remove:function(n){delete this.$0_0[n]},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var u=2500;if(JSON.stringify(this.$0_0).length>u)throw Error.argument();var t=$h.CommonParameters.parse(i,!1,!0);var r=new $h.SaveDictionaryRequest(t.$3_0,t.$4_0);r.$1i_0(4,"SaveCustomProperties",{customProperties:this.$0_0})}};$h.Diagnostics=function(n,t){this.$$d_$4H_0=Function.createDelegate(this,this.$4H_0);this.$$d_$42_0=Function.createDelegate(this,this.$42_0);this.$$d_$41_0=Function.createDelegate(this,this.$41_0);this.$0_0=n;this.$U_0=t;$h.InitialData.$1(this,"hostName",this.$$d_$41_0);$h.InitialData.$1(this,"hostVersion",this.$$d_$42_0);64===this.$U_0&&$h.InitialData.$1(this,"OWAView",this.$$d_$4H_0)};$h.Diagnostics.prototype={$0_0:null,$U_0:0,$41_0:function(){if(8===this.$U_0)return"Outlook";else if(64===this.$U_0)return"OutlookWebApp";return null},$42_0:function(){return this.$0_0.get_$4T_0()},$4H_0:function(){return this.$0_0.get_$4f_0()}};$h.EmailAddressDetails=function(n){this.$$d_$2Q_0=Function.createDelegate(this,this.$2Q_0);this.$$d_$2E_0=Function.createDelegate(this,this.$2E_0);this.$$d_$1R_0=Function.createDelegate(this,this.$1R_0);this.$$d_$1S_0=Function.createDelegate(this,this.$1S_0);this.$0_0=n;$h.InitialData.$1(this,"emailAddress",this.$$d_$1S_0);$h.InitialData.$1(this,"displayName",this.$$d_$1R_0);$h.ScriptHelpers.dictionaryContainsKey(n,"appointmentResponse")&&$h.InitialData.$1(this,"appointmentResponse",this.$$d_$2E_0);$h.ScriptHelpers.dictionaryContainsKey(n,"recipientType")&&$h.InitialData.$1(this,"recipientType",this.$$d_$2Q_0)};$h.EmailAddressDetails.$1y=function(n){var t={};var r=n.Name;var i=n.UserId;t.name=r||$h.EmailAddressDetails.$1K;t.address=i||$h.EmailAddressDetails.$1K;return new $h.EmailAddressDetails(t)};$h.EmailAddressDetails.prototype={$0_0:null,toJSON:function(){var n={};n.emailAddress=this.$1S_0();n.displayName=this.$1R_0();$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"appointmentResponse")&&(n.appointmentResponse=this.$2E_0());$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"recipientType")&&(n.recipientType=this.$2Q_0());return n},$1S_0:function(){return this.$0_0.address},$1R_0:function(){return this.$0_0.name},$2E_0:function(){var n=this.$0_0.appointmentResponse;return n<$h.EmailAddressDetails.$1h.length?$h.EmailAddressDetails.$1h[n]:Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},$2Q_0:function(){var n=this.$0_0.recipientType;return n<$h.EmailAddressDetails.$1e.length?$h.EmailAddressDetails.$1e[n]:Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};$h.Entities=function(n,t,i,r){this.$$d_$34_0=Function.createDelegate(this,this.$34_0);this.$$d_$2O_0=Function.createDelegate(this,this.$2O_0);this.$$d_$2L_0=Function.createDelegate(this,this.$2L_0);this.$$d_$2I_0=Function.createDelegate(this,this.$2I_0);this.$$d_$1X_0=Function.createDelegate(this,this.$1X_0);this.$$d_$1b_0=Function.createDelegate(this,this.$1b_0);this.$$d_$1T_0=Function.createDelegate(this,this.$1T_0);this.$$d_$2M_0=Function.createDelegate(this,this.$2M_0);this.$$d_$2S_0=Function.createDelegate(this,this.$2S_0);this.$$d_$1Q_0=Function.createDelegate(this,this.$1Q_0);this.$0_0=n||{};this.$1L_0=t||{};this.$N_0=i;$h.InitialData.$1(this,"addresses",this.$$d_$1Q_0);$h.InitialData.$1(this,"taskSuggestions",this.$$d_$2S_0);$h.InitialData.$1(this,"meetingSuggestions",this.$$d_$2M_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$1T_0);$h.InitialData.$1(this,"urls",this.$$d_$1b_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$1X_0);$h.InitialData.$1(this,"contacts",this.$$d_$2I_0);$h.InitialData.$1(this,"flightReservations",this.$$d_$2L_0);$h.InitialData.$1(this,"parcelDeliveries",this.$$d_$2O_0);this.$B_0=r};$h.Entities.$D=function(n,t,i,r,u,f){var o=null;var e=t[i];if(!e)return new Array(0);u&&(e=$h.Entities.$2d(Object,e,$h.Entities.$3H,f));o=new Array(e.length);for(var c=0,l=e,a=l.length,s=0;s<a;++s){var h=l[s];o[c++]=r?r(h):h}return o};$h.Entities.$I=function(n,t,i){var r=n[t];if(!r)return new Array(0);i&&(r=$h.Entities.$2d(String,r,$h.Entities.$4o,null));return r};$h.Entities.$1w=function(n){return new $h.Contact(n)};$h.Entities.$21=function(n){return new $h.TaskSuggestion(n)};$h.Entities.$1z=function(n){return new $h.PhoneNumber(n)};$h.Entities.$3H=function(n,t,i){return n===t?!0:!n||!t?!1:n[i]===t[i]?!0:!1};$h.Entities.$4o=function(n,t,i){return n===t};$h.Entities.$2d=function(n,t,i,r){for(var u=t.length-1;u>=0;u--){for(var e=!1,f=u-1;f>=0;f--)if(i(t[u],t[f],r)){e=!0;break}e&&Array.removeAt(t,u)}return t};$h.Entities.prototype={$N_0:null,$0_0:null,$1L_0:null,$F_0:null,$B_0:0,$11_0:null,$q_0:null,$K_0:null,$h_0:null,$a_0:null,$i_0:null,$15_0:null,$l_0:null,$u_0:null,$3s_0:function(n){if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion)return this.$2M_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion)return this.$2S_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address)return this.$1Q_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber)return this.$1X_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress)return this.$1T_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url)return this.$1b_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact)return this.$2I_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.FlightReservations)return this.$2L_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.ParcelDeliveries)return this.$2O_0();return null},$1V_0:function(n){this.$F_0||(this.$F_0={});if(!$h.ScriptHelpers.dictionaryContainsKey(this.$F_0,n)){for(var r=!1,i=0;i<$h.Entities.$16.length;i++){var u=$h.Entities.$16[i];var t=this.$1L_0[u];if(t&&$h.ScriptHelpers.dictionaryContainsKey(t,n)){switch(u){case"EmailAddresses":case"Urls":this.$F_0[n]=$h.Entities.$I(t,n);break;case"Addresses":this.$F_0[n]=$h.Entities.$I(t,n,!0);break;case"PhoneNumbers":this.$F_0[n]=$h.Entities.$D($h.PhoneNumber,t,n,$h.Entities.$1z,!1,null);break;case"TaskSuggestions":this.$F_0[n]=$h.Entities.$D($h.TaskSuggestion,t,n,$h.Entities.$21,!0,"TaskString");break;case"MeetingSuggestions":this.$F_0[n]=$h.Entities.$D($h.MeetingSuggestion,t,n,this.$$d_$34_0,!0,"MeetingString");break;case"Contacts":this.$F_0[n]=$h.Entities.$D($h.Contact,t,n,$h.Entities.$1w,!0,"ContactString");break}r=!0;break}}r||(this.$F_0[n]=null)}return this.$F_0[n]},$34_0:function(n){return new $h.MeetingSuggestion(n,this.$N_0)},$1Q_0:function(){this.$a_0||(this.$a_0=$h.Entities.$I(this.$0_0,"Addresses",!0));return this.$a_0},$1T_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$i_0||(this.$i_0=$h.Entities.$I(this.$0_0,"EmailAddresses",!1));return this.$i_0},$1b_0:function(){this.$15_0||(this.$15_0=$h.Entities.$I(this.$0_0,"Urls",!1));return this.$15_0},$1X_0:function(){this.$K_0||(this.$K_0=$h.Entities.$D($h.PhoneNumber,this.$0_0,"PhoneNumbers",$h.Entities.$1z));return this.$K_0},$2S_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$11_0||(this.$11_0=$h.Entities.$D($h.TaskSuggestion,this.$0_0,"TaskSuggestions",$h.Entities.$21,!0,"TaskString"));return this.$11_0},$2M_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$q_0||(this.$q_0=$h.Entities.$D($h.MeetingSuggestion,this.$0_0,"MeetingSuggestions",this.$$d_$34_0,!0,"MeetingString"));return this.$q_0},$2I_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$h_0||(this.$h_0=$h.Entities.$D($h.Contact,this.$0_0,"Contacts",$h.Entities.$1w,!0,"ContactString"));return this.$h_0},$2O_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$u_0||(this.$u_0=$h.Entities.$D(Object,this.$0_0,"ParcelDeliveries",null));return this.$u_0},$2L_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0);this.$l_0||(this.$l_0=$h.Entities.$D(Object,this.$0_0,"FlightReservations",null));return this.$l_0}};$h.ReplyConstants=function(){};$h.AsyncConstants=function(){};Office.cast.item=function(){};Office.cast.item.toItemRead=function(n){if($h.Item.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toItemCompose=function(n){if($h.ComposeItem.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessage=function(n){return Office.cast.item.toMessageRead(n)};Office.cast.item.toMessageRead=function(n){if($h.Message.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessageCompose=function(n){if($h.MessageCompose.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMeetingRequest=function(n){if($h.MeetingRequest.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointment=function(n){return Office.cast.item.toAppointmentRead(n)};Office.cast.item.toAppointmentRead=function(n){if($h.Appointment.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointmentCompose=function(n){if($h.AppointmentCompose.isInstanceOfType(n))return n;throw Error.argumentType();};$h.Item=function(n){this.$$d_$2G_1=Function.createDelegate(this,this.$2G_1);this.$$d_$2F_1=Function.createDelegate(this,this.$2F_1);this.$$d_$49_1=Function.createDelegate(this,this.$49_1);this.$$d_$4A_1=Function.createDelegate(this,this.$4A_1);this.$$d_$3w_1=Function.createDelegate(this,this.$3w_1);this.$$d_$3v_1=Function.createDelegate(this,this.$3v_1);$h.Item.initializeBase(this,[n]);$h.InitialData.$1(this,"dateTimeCreated",this.$$d_$3v_1);$h.InitialData.$1(this,"dateTimeModified",this.$$d_$3w_1);$h.InitialData.$1(this,"itemId",this.$$d_$4A_1);$h.InitialData.$1(this,"itemClass",this.$$d_$49_1);$h.InitialData.$1(this,"attachments",this.$$d_$2F_1);$h.InitialData.$1(this,"body",this.$$d_$2G_1)};$h.Item.prototype={$H_1:null,$4A_1:function(){return this.$0_0.get_$4Z_0()},$49_1:function(){return this.$0_0.get_$4Y_0()},$3v_1:function(){return this.$0_0.get_$36_0()},$3w_1:function(){return this.$0_0.get_$37_0()},$2F_1:function(){return this.$0_0.get_$2p_0()},$2G_1:function(){this.$H_1||(this.$H_1=new $h.Body);return this.$H_1}};$h.ItemBase=function(n){this.$$d_$31_0=Function.createDelegate(this,this.$31_0);this.$$d_$4D_0=Function.createDelegate(this,this.$4D_0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this.$0_0=n;$h.InitialData.$1(this,"itemType",this.$$d_getItemType);$h.InitialData.$1(this,"notificationMessages",this.$$d_$4D_0)};$h.ItemBase.prototype={$0_0:null,$s_0:null,get_data:function(){return this.$0_0},loadCustomPropertiesAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0,!0);var r=new $h.LoadDictionaryRequest(this.$$d_$31_0,"customProperties",t.$3_0,t.$4_0);r.$1i_0(3,"LoadCustomProperties",{})},$31_0:function(n){return new $h.CustomProperties(n)},$4D_0:function(){this.$s_0||(this.$s_0=new $h.NotificationMessages);return this.$s_0}};$h.MeetingRequest=function(n){this.$$d_$1Z_3=Function.createDelegate(this,this.$1Z_3);this.$$d_$1W_3=Function.createDelegate(this,this.$1W_3);this.$$d_$n_3=Function.createDelegate(this,this.$n_3);this.$$d_$1U_3=Function.createDelegate(this,this.$1U_3);this.$$d_$1a_3=Function.createDelegate(this,this.$1a_3);$h.MeetingRequest.initializeBase(this,[n]);$h.InitialData.$1(this,"start",this.$$d_$1a_3);$h.InitialData.$1(this,"end",this.$$d_$1U_3);$h.InitialData.$1(this,"location",this.$$d_$n_3);$h.InitialData.$1(this,"optionalAttendees",this.$$d_$1W_3);$h.InitialData.$1(this,"requiredAttendees",this.$$d_$1Z_3)};$h.MeetingRequest.prototype={$1a_3:function(){return this.$0_0.get_$2h_0()},$1U_3:function(){return this.$0_0.get_$25_0()},$n_3:function(){return this.$0_0.get_$2W_0()},$1W_3:function(){return this.$0_0.get_$1A_0()},$1Z_3:function(){return this.$0_0.get_$1m_0()}};$h.MeetingSuggestion=function(n,t){this.$$d_$3y_0=Function.createDelegate(this,this.$3y_0);this.$$d_$4O_0=Function.createDelegate(this,this.$4O_0);this.$$d_$o_0=Function.createDelegate(this,this.$o_0);this.$$d_$n_0=Function.createDelegate(this,this.$n_0);this.$$d_$3p_0=Function.createDelegate(this,this.$3p_0);this.$$d_$4B_0=Function.createDelegate(this,this.$4B_0);this.$0_0=n;this.$N_0=t;$h.InitialData.$1(this,"meetingString",this.$$d_$4B_0);$h.InitialData.$1(this,"attendees",this.$$d_$3p_0);$h.InitialData.$1(this,"location",this.$$d_$n_0);$h.InitialData.$1(this,"subject",this.$$d_$o_0);$h.InitialData.$1(this,"start",this.$$d_$4O_0);$h.InitialData.$1(this,"end",this.$$d_$3y_0)};$h.MeetingSuggestion.prototype={$N_0:null,$0_0:null,$d_0:null,$4B_0:function(){return this.$0_0.MeetingString},$n_0:function(){return this.$0_0.Location},$o_0:function(){return this.$0_0.Subject},$4O_0:function(){var n=this.$1x_0("StartTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this.$N_0);return t.getTime()!==n.getTime()?OSF.DDA.OutlookAppOm.$2.convertToUtcClientTime(OSF.DDA.OutlookAppOm.$2.$1G_0(t)):n},$3y_0:function(){var n=this.$1x_0("EndTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this.$N_0);return t.getTime()!==n.getTime()?OSF.DDA.OutlookAppOm.$2.convertToUtcClientTime(OSF.DDA.OutlookAppOm.$2.$1G_0(t)):n},$1x_0:function(n){var t=this.$0_0[n];return t?new Date(t):null},$3p_0:function(){if(!this.$d_0){var n=this;this.$d_0=$h.Entities.$D($h.EmailAddressDetails,this.$0_0,"Attendees",function(n){return $h.EmailAddressDetails.$1y(n)})}return this.$d_0}};$h.MeetingSuggestionTimeDecoder=function(){};$h.MeetingSuggestionTimeDecoder.resolve=function(n,t){if(!t)return n;try{var f;var i;var r;var u=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);var s,o,e;if(e=$h.MeetingSuggestionTimeDecoder.$3A(n,s={val:r},o={val:f}),r=s.val,f=o.val,e){i=$h.PreciseDate.isInstanceOfType(r)?$h.MeetingSuggestionTimeDecoder.$4h(u,r):$h.RelativeDate.isInstanceOfType(r)?$h.MeetingSuggestionTimeDecoder.$4i(u,r):u;if(isNaN(i.getTime()))return t;i.setMilliseconds(i.getMilliseconds()+f);return i}else return n}catch(h){return t}};$h.MeetingSuggestionTimeDecoder.$2V=function(n){return null===n||n===undefined};$h.MeetingSuggestionTimeDecoder.$4h=function(n,t){var r=t.$1s_1;var f=t.$r_1?t.$r_1-1:n.getMonth();var u=t.$1H_1;if(!u)return n;var i;if($h.MeetingSuggestionTimeDecoder.$2V(r)){i=new Date(n.getFullYear(),f,u);i.getTime()<n.getTime()&&(i=new Date(n.getFullYear()+1,f,u))}else i=new Date(r<50?2e3+r:1900+r,f,u);return i.getMonth()!==f?n:i};$h.MeetingSuggestionTimeDecoder.$4i=function(n,t){var i;switch(t.$1n_1){case 0:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(i.getDate()+t.$C_1);return i;case 5:return $h.MeetingSuggestionTimeDecoder.$3K(n,t.$C_1,t.$L_1);case 2:var r=1;switch(t.$O_1){case 1:break;case 2:r=16;break;default:t.$C_1||(r=n.getDate());break}i=new Date(n.getFullYear(),n.getMonth(),r);i.setMonth(i.getMonth()+t.$C_1);i.getTime()<n.getTime()&&i.setDate(i.getDate()+n.getDate()-1);return i;case 1:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(n.getDate()+7*t.$C_1);if(t.$O_1!==1&&t.$O_1){if(t.$O_1===2){i.setDate(i.getDate()+5-i.getDay());return i}}else{i.setDate(i.getDate()+1-i.getDay());return i.getTime()<n.getTime()?n:i}break;case 4:return $h.MeetingSuggestionTimeDecoder.$3L(n,t);case 3:if(t.$C_1>0)return new Date(n.getFullYear()+t.$C_1,0,1);break;default:break}return n};$h.MeetingSuggestionTimeDecoder.$3K=function(n,t,i){if(t>-5&&t<5){var u;var f;u=(i+6)%7+1;f=7*t+(u-n.getDay());n.setDate(n.getDate()+f);return n}else{var r=(i-n.getDay())%7;r<0&&(r+=7);n.setDate(n.getDate()+r);return n}};$h.MeetingSuggestionTimeDecoder.$3L=function(n,t){var f;var i;var r;f=n;if(t.$L_1<=0||t.$L_1>12||t.$C_1<=0||t.$C_1>5)return n;var e=(12+t.$L_1-f.getMonth()-1)%12;i=new Date(f.getFullYear(),f.getMonth()+e,1);if(t.$O_1===1)if(t.$C_1===1&&i.getDay()!==6&&i.getDay())return i;else{r=new Date(i.getFullYear(),i.getMonth(),i.getDate());r.setDate(r.getDate()+(8-i.getDay())%7);i.getDay()!==6&&i.getDay()&&i.getDay()!==1&&r.setDate(r.getDate()-7);r.setDate(r.getDate()+7*(t.$C_1-1));return r.getMonth()+1!==t.$L_1?n:r}else{r=new Date(i.getFullYear(),i.getMonth(),$h.MeetingSuggestionTimeDecoder.$39(i.getMonth(),i.getFullYear()));var u=1-r.getDay();u>0&&(u=u-7);r.setDate(r.getDate()+u);r.setDate(r.getDate()+7*(1-t.$C_1));return r.getMonth()+1!==t.$L_1?i.getDay()!==6&&i.getDay()?i:n:r}};$h.MeetingSuggestionTimeDecoder.$3A=function(n,t,i){var f=32767;t.val=null;i.val=0;if(!n)return!1;i.val=$h.MeetingSuggestionTimeDecoder.$4Q(n);var e=n.getTime()-i.val;var r=(e-$h.MeetingSuggestionTimeDecoder.$1u.getTime())/864e5;if(r<0)return!1;else if(r>=262144)return!1;else{var u=r>>15;r=r&f;switch(u){case 0:return $h.MeetingSuggestionTimeDecoder.$3B(r,t);case 1:return $h.MeetingSuggestionTimeDecoder.$3C(r,t);default:return!1}}};$h.MeetingSuggestionTimeDecoder.$3B=function(n,t){var h=7;var e=15;var o=31;var s=127;var u=null;var r=0;var f=0;t.val=null;var i=n>>12&h;if((i&4)==4){u=n>>5&s;if((i&2)==2){if((i&1)==1)return!1;r=n>>1&e}}else{(i&2)==2&&(r=n>>8&e);(i&1)==1&&(f=n>>3&o)}t.val=new $h.PreciseDate(f,r,u);return!0};$h.MeetingSuggestionTimeDecoder.$3C=function(n,t){var o=15;var e=63;var h=7;var s=3;var r=n&o;n>>=4;var i=$h.MeetingSuggestionTimeDecoder.$3N(n&e,6);n>>=6;var f=n&h;n>>=3;var u=n&s;try{t.val=new $h.RelativeDate(u,i,f,r);return!0}catch(c){t.val=null;return!1}};$h.MeetingSuggestionTimeDecoder.$3N=function(n,t){var i=1<<t-1;var r=(1<<t)-1;return(n&i)===i?-((n^r)+1):n};$h.MeetingSuggestionTimeDecoder.$39=function(n,t){return 32-new Date(t,n,32).getDate()};$h.MeetingSuggestionTimeDecoder.$4Q=function(n){var t=0;t+=n.getUTCHours()*3600;t+=n.getUTCMinutes()*60;t+=n.getUTCSeconds();t*=1e3;t+=n.getUTCMilliseconds();return t};$h.ExtractedDate=function(){};$h.PreciseDate=function(n,t,i){$h.PreciseDate.initializeBase(this);this.$1H_1=n;this.$r_1=t;$h.MeetingSuggestionTimeDecoder.$2V(i)||(this.$1s_1=i%100)};$h.PreciseDate.prototype={$1H_1:0,$r_1:0,$1s_1:null};$h.RelativeDate=function(n,t,i,r){$h.RelativeDate.initializeBase(this);this.$O_1=n;this.$C_1=t;this.$1n_1=i;this.$L_1=r};$h.RelativeDate.prototype={$O_1:0,$C_1:0,$1n_1:0,$L_1:0};$h.Message=function(n){this.$$d_$2J_2=Function.createDelegate(this,this.$2J_2);this.$$d_$46_2=Function.createDelegate(this,this.$46_2);this.$$d_$2H_2=Function.createDelegate(this,this.$2H_2);this.$$d_$2T_2=Function.createDelegate(this,this.$2T_2);this.$$d_$40_2=Function.createDelegate(this,this.$40_2);this.$$d_$4M_2=Function.createDelegate(this,this.$4M_2);this.$$d_$2N_2=Function.createDelegate(this,this.$2N_2);this.$$d_$o_2=Function.createDelegate(this,this.$o_2);$h.Message.initializeBase(this,[n]);$h.InitialData.$1(this,"subject",this.$$d_$o_2);$h.InitialData.$1(this,"normalizedSubject",this.$$d_$2N_2);$h.InitialData.$1(this,"sender",this.$$d_$4M_2);$h.InitialData.$1(this,"from",this.$$d_$40_2);$h.InitialData.$1(this,"to",this.$$d_$2T_2);$h.InitialData.$1(this,"cc",this.$$d_$2H_2);$h.InitialData.$1(this,"internetMessageId",this.$$d_$46_2);$h.InitialData.$1(this,"conversationId",this.$$d_$2J_2)};$h.Message.prototype={getEntities:function(){return this.$0_0.$m_0()},getEntitiesByType:function(n){return this.$0_0.$2K_0(n)},getFilteredEntitiesByName:function(n){return this.$0_0.$1V_0(n)},getRegExMatches:function(){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatches");return this.$0_0.$1Y_0()},getRegExMatchesByName:function(n){OSF.DDA.OutlookAppOm.$2.$5_0(1,"getRegExMatchesByName");return this.$0_0.$2R_0(n)},displayReplyForm:function(n){OSF.DDA.OutlookAppOm.$2.$23_0(n)},displayReplyAllForm:function(n){OSF.DDA.OutlookAppOm.$2.$22_0(n)},getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},$o_2:function(){return this.$0_0.get_$2k_0()},$2N_2:function(){return this.$0_0.get_$2c_0()},$4M_2:function(){return this.$0_0.get_$4m_0()},$40_2:function(){return this.$0_0.get_$3M_0()},$2T_2:function(){return this.$0_0.get_$1m_0()},$2H_2:function(){return this.$0_0.get_$1A_0()},$46_2:function(){return this.$0_0.get_$4W_0()},$2J_2:function(){return this.$0_0.get_$1v_0()}};$h.MessageCompose=function(n){this.$$d_$2J_2=Function.createDelegate(this,this.$2J_2);this.$$d_$3q_2=Function.createDelegate(this,this.$3q_2);this.$$d_$2H_2=Function.createDelegate(this,this.$2H_2);this.$$d_$2T_2=Function.createDelegate(this,this.$2T_2);$h.MessageCompose.initializeBase(this,[n]);$h.InitialData.$1(this,"to",this.$$d_$2T_2);$h.InitialData.$1(this,"cc",this.$$d_$2H_2);$h.InitialData.$1(this,"bcc",this.$$d_$3q_2);$h.InitialData.$1(this,"conversationId",this.$$d_$2J_2)};$h.MessageCompose.prototype={$12_2:null,$f_2:null,$e_2:null,getItemType:function(){return Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},$2T_2:function(){this.$0_0.$A_0();this.$12_2||(this.$12_2=new $h.ComposeRecipient(0,"to"));return this.$12_2},$2H_2:function(){this.$0_0.$A_0();this.$f_2||(this.$f_2=new $h.ComposeRecipient(1,"cc"));return this.$f_2},$3q_2:function(){this.$0_0.$A_0();this.$e_2||(this.$e_2=new $h.ComposeRecipient(2,"bcc"));return this.$e_2},$2J_2:function(){return this.$0_0.get_$1v_0()}};$h.NotificationMessages=function(){};$h.NotificationMessages.$2X=function(n){var i;var t;i=n.type;if(i===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ProgressIndicator)t=1;else if(i===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage)t=0;else if(i===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ErrorMessage)t=2;else throw Error.argument("type");n.type=t};$h.NotificationMessages.$1q=function(n){if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("key");OSF.DDA.OutlookAppOm.$9(n.length,0,32,"key")};$h.NotificationMessages.$2o=function(n){if(!$h.ScriptHelpers.isNonEmptyString(n.type))throw Error.argument("type");if(n.type===Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage){if(!$h.ScriptHelpers.isNonEmptyString(n.icon))throw Error.argument("icon");OSF.DDA.OutlookAppOm.$9(n.icon.length,0,32,"icon");if($h.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");if(!Boolean.isInstanceOfType(n.persistent))throw Error.argumentType("persistent",Object.getType(n.persistent),Boolean);}else{if(!$h.ScriptHelpers.isUndefined(n.icon))throw Error.argument("icon");if(!$h.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");}if(!$h.ScriptHelpers.isNonEmptyString(n.message))throw Error.argument("message");OSF.DDA.OutlookAppOm.$9(n.message.length,0,150,"message")};$h.NotificationMessages.prototype={addAsync:function(n,t){for(var u=[],r=2;r<arguments.length;++r)u[r-2]=arguments[r];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.addAsync");var f=$h.CommonParameters.parse(u,!1);$h.NotificationMessages.$1q(n);$h.NotificationMessages.$2o(t);var i={};i=$.extend(!0,i,t);i.key=n;$h.NotificationMessages.$2X(i);OSF.DDA.OutlookAppOm.$2.$8_0(33,"AddNotificationMessageAsync",i,null,f.$4_0,f.$3_0)},getAllAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.getAllAsync");var t=$h.CommonParameters.parse(i,!0);OSF.DDA.OutlookAppOm.$2.$8_0(34,"GetAllNotificationMessagesAsync",null,null,t.$4_0,t.$3_0)},replaceAsync:function(n,t){for(var u=[],r=2;r<arguments.length;++r)u[r-2]=arguments[r];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.replaceAsync");var f=$h.CommonParameters.parse(u,!1);$h.NotificationMessages.$1q(n);$h.NotificationMessages.$2o(t);var i={};i=$.extend(!0,i,t);i.key=n;$h.NotificationMessages.$2X(i);OSF.DDA.OutlookAppOm.$2.$8_0(35,"ReplaceNotificationMessageAsync",i,null,f.$4_0,f.$3_0)},removeAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];OSF.DDA.OutlookAppOm.$2.$5_0(0,"NotificationMessages.removeAsync");var i=$h.CommonParameters.parse(r,!1);$h.NotificationMessages.$1q(n);var u={key:n};OSF.DDA.OutlookAppOm.$2.$8_0(36,"RemoveNotificationMessageAsync",u,null,i.$4_0,i.$3_0)}};$h.OutlookErrorManager=function(){};$h.OutlookErrorManager.getErrorArgs=function(n){$h.OutlookErrorManager.$1c||$h.OutlookErrorManager.$4U();return OSF.DDA.ErrorCodeManager.getErrorArgs(n)};$h.OutlookErrorManager.$4U=function(){$h.OutlookErrorManager.$6(9e3,"AttachmentSizeExceeded",_u.ExtensibilityStrings.l_AttachmentExceededSize_Text);$h.OutlookErrorManager.$6(9001,"NumberOfAttachmentsExceeded",_u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text);$h.OutlookErrorManager.$6(9002,"InternalFormatError",_u.ExtensibilityStrings.l_InternalFormatError_Text);$h.OutlookErrorManager.$6(9003,"InvalidAttachmentId",_u.ExtensibilityStrings.l_InvalidAttachmentId_Text);$h.OutlookErrorManager.$6(9004,"InvalidAttachmentPath",_u.ExtensibilityStrings.l_InvalidAttachmentPath_Text);$h.OutlookErrorManager.$6(9005,"CannotAddAttachmentBeforeUpgrade",_u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text);$h.OutlookErrorManager.$6(9006,"AttachmentDeletedBeforeUploadCompletes",_u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text);$h.OutlookErrorManager.$6(9007,"AttachmentUploadGeneralFailure",_u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text);$h.OutlookErrorManager.$6(9008,"AttachmentToDeleteDoesNotExist",_u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text);$h.OutlookErrorManager.$6(9009,"AttachmentDeleteGeneralFailure",_u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text);$h.OutlookErrorManager.$6(9010,"InvalidEndTime",_u.ExtensibilityStrings.l_InvalidEndTime_Text);$h.OutlookErrorManager.$6(9011,"HtmlSanitizationFailure",_u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text);$h.OutlookErrorManager.$6(9012,"NumberOfRecipientsExceeded",String.format(_u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text,500));$h.OutlookErrorManager.$6(9013,"NoValidRecipientsProvided",_u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text);$h.OutlookErrorManager.$6(9014,"CursorPositionChanged",_u.ExtensibilityStrings.l_CursorPositionChanged_Text);$h.OutlookErrorManager.$6(9016,"InvalidSelection",_u.ExtensibilityStrings.l_InvalidSelection_Text);$h.OutlookErrorManager.$6(9017,"AccessRestricted","");$h.OutlookErrorManager.$6(9018,"GenericTokenError","");$h.OutlookErrorManager.$6(9019,"GenericSettingsError","");$h.OutlookErrorManager.$6(9020,"GenericResponseError","");$h.OutlookErrorManager.$6(9021,"SaveError",_u.ExtensibilityStrings.l_SaveError_Text);$h.OutlookErrorManager.$6(9022,"MessageInDifferentStoreError",_u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text);$h.OutlookErrorManager.$6(9023,"DuplicateNotificationKey",_u.ExtensibilityStrings.l_DuplicateNotificationKey_Text);$h.OutlookErrorManager.$6(9024,"NotificationKeyNotFound",_u.ExtensibilityStrings.l_NotificationKeyNotFound_Text);$h.OutlookErrorManager.$6(9025,"NumberOfNotificationsExceeded",_u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text);$h.OutlookErrorManager.$1c=!0};$h.OutlookErrorManager.$6=function(n,t,i){OSF.DDA.ErrorCodeManager.addErrorMessage(n,{name:t,message:i})};$h.OutlookErrorManager.OutlookErrorCodes=function(){};$h.OutlookErrorManager.OsfDdaErrorCodes=function(){};$h.PhoneNumber=function(n){this.$$d_$4K_0=Function.createDelegate(this,this.$4K_0);this.$$d_$4G_0=Function.createDelegate(this,this.$4G_0);this.$$d_$4J_0=Function.createDelegate(this,this.$4J_0);this.$0_0=n;$h.InitialData.$1(this,"phoneString",this.$$d_$4J_0);$h.InitialData.$1(this,"originalPhoneString",this.$$d_$4G_0);$h.InitialData.$1(this,"type",this.$$d_$4K_0)};$h.PhoneNumber.prototype={$0_0:null,$4J_0:function(){return this.$0_0.PhoneString},$4G_0:function(){return this.$0_0.OriginalPhoneString},$4K_0:function(){return this.$0_0.Type}};$h.TaskSuggestion=function(n){this.$$d_$3m_0=Function.createDelegate(this,this.$3m_0);this.$$d_$4P_0=Function.createDelegate(this,this.$4P_0);this.$0_0=n;$h.InitialData.$1(this,"taskString",this.$$d_$4P_0);$h.InitialData.$1(this,"assignees",this.$$d_$3m_0)};$h.TaskSuggestion.prototype={$0_0:null,$b_0:null,$4P_0:function(){return this.$0_0.TaskString},$3m_0:function(){if(!this.$b_0){var n=this;this.$b_0=$h.Entities.$D($h.EmailAddressDetails,this.$0_0,"Assignees",function(n){return $h.EmailAddressDetails.$1y(n)})}return this.$b_0}};$h.UserProfile=function(n){this.$$d_$4R_0=Function.createDelegate(this,this.$4R_0);this.$$d_$1S_0=Function.createDelegate(this,this.$1S_0);this.$$d_$1R_0=Function.createDelegate(this,this.$1R_0);this.$0_0=n;$h.InitialData.$1(this,"displayName",this.$$d_$1R_0);$h.InitialData.$1(this,"emailAddress",this.$$d_$1S_0);$h.InitialData.$1(this,"timeZone",this.$$d_$4R_0)};$h.UserProfile.prototype={$0_0:null,$1R_0:function(){return this.$0_0.get_$4w_0()},$1S_0:function(){return this.$0_0.get_$4x_0()},$4R_0:function(){return this.$0_0.get_$4y_0()}};$h.RequestState=function(){};$h.RequestState.prototype={unsent:0,opened:1,headersReceived:2,loading:3,done:4};$h.RequestState.registerEnum("$h.RequestState",!1);$h.CommonParameters=function(n,t,i){this.$S_0=n;this.$3_0=t;this.$4_0=i};$h.CommonParameters.parse=function(n,t,i){var e;var s,h;if(i&&(h=$h.CommonParameters.$4v(n,s={val:e}),e=s.val,h))return e;var f=n.length;var r=null;var u=null;var o=null;if(f===1)if(Function.isInstanceOfType(n[0]))u=n[0];else if(Object.isInstanceOfType(n[0]))r=n[0];else throw Error.argumentType();else if(f===2){if(!Object.isInstanceOfType(n[0]))throw Error.argument("options");if(!Function.isInstanceOfType(n[1]))throw Error.argument("callback");r=n[0];u=n[1]}else if(f)throw Error.parameterCount(_u.ExtensibilityStrings.l_ParametersNotAsExpected_Text);if(t&&!u)throw Error.argumentNull("callback");r&&!$h.ScriptHelpers.isNullOrUndefined(r.asyncContext)&&(o=r.asyncContext);return new $h.CommonParameters(r,u,o)};$h.CommonParameters.$4v=function(n,t){t.val=null;var i=n.length;var u=null;var r=null;if(!i||i>2||!Function.isInstanceOfType(n[0]))return!1;u=n[0];i>1&&(r=n[1]);t.val=new $h.CommonParameters(null,u,r);return!0};$h.CommonParameters.prototype={$S_0:null,$3_0:null,$4_0:null,get_options:function(){return this.$S_0},get_callback:function(){return this.$3_0},get_asyncContext:function(){return this.$4_0}};$h.EwsRequest=function(n){$h.EwsRequest.initializeBase(this,[n])};$h.EwsRequest.prototype={readyState:1,status:0,statusText:null,onreadystatechange:null,responseText:null,get_$2i_1:function(){return this.status},set_$2i_1:function(n){this.status=n;return n},get_$2j_1:function(){return this.statusText},set_$2j_1:function(n){this.statusText=n;return n},get_$1f_1:function(){return this.readyState},set_$1f_1:function(n){this.readyState=n;return n},get_hasOnReadyStateChangeCallback:function(){return!$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)},get_$1g_1:function(){return this.responseText},set_$1g_1:function(n){this.responseText=n;return n},send:function(n){this.$2t_1();$h.ScriptHelpers.isNullOrUndefined(n)&&this.$1j_1();this.$1i_0(5,"EwsRequest",{body:n})},$2s_1:function(){$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)||this.onreadystatechange()},$4g_1:function(n){},executeExtraFailedResponseSteps:function(){}};$h.InitialData=function(n){this.$0_0=n;this.$B_0=this.$2q_0()};$h.InitialData.$1=function(n,t,i){var r={get:i,configurable:!1};Object.defineProperty(n,t,r)};$h.InitialData.prototype={$13_0:null,$g_0:null,$c_0:null,$x_0:null,$k_0:null,$0_0:null,$B_0:0,get_$4Z_0:function(){return this.$0_0.id},get_$4Y_0:function(){return this.$0_0.itemClass},get_$36_0:function(){return new Date(this.$0_0.dateTimeCreated)},get_$37_0:function(){return new Date(this.$0_0.dateTimeModified)},get_$38_0:function(){return new Date(this.$0_0.dateTimeSent)},get_$2k_0:function(){this.$A_0();return this.$0_0.subject},get_$2c_0:function(){this.$A_0();return this.$0_0.normalizedSubject},get_$4W_0:function(){return this.$0_0.internetMessageId},get_$1v_0:function(){return this.$0_0.conversationId},get_$4m_0:function(){this.$A_0();var n=this.$0_0.sender;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$3M_0:function(){this.$A_0();var n=this.$0_0.from;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$1m_0:function(){this.$A_0();null===this.$13_0&&(this.$13_0=this.$1D_0("to"));return this.$13_0},get_$1A_0:function(){this.$A_0();null===this.$g_0&&(this.$g_0=this.$1D_0("cc"));return this.$g_0},get_$2p_0:function(){this.$A_0();null===this.$c_0&&(this.$c_0=this.$2z_0());return this.$c_0},get_$3J_0:function(){return this.$0_0.ewsUrl},get_$4b_0:function(){return this.$0_0.marketplaceAssetId},get_$4c_0:function(){return this.$0_0.marketplaceContentMarket},get_$2u_0:function(){return this.$0_0.consentMetadata},get_$4X_0:function(){return this.$0_0.isRead},get_$3I_0:function(){return this.$0_0.entryPointUrl},get_$2h_0:function(){return new Date(this.$0_0.start)},get_$25_0:function(){return new Date(this.$0_0.end)},get_$2W_0:function(){return this.$0_0.location},get_$4j_0:function(){this.$A_0();null===this.$x_0&&(this.$x_0=this.$1D_0("resources"));return this.$x_0},get_$4d_0:function(){this.$A_0();var n=this.$0_0.organizer;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$4w_0:function(){return this.$0_0.userDisplayName},get_$4x_0:function(){return this.$0_0.userEmailAddress},get_$4y_0:function(){return this.$0_0.userTimeZone},get_$1l_0:function(){return this.$0_0.timeZoneOffsets},get_$4T_0:function(){return this.$0_0.hostVersion},get_$4f_0:function(){return this.$0_0.owaView},get_$4e_0:function(){return this.$0_0.overrideWindowOpen},$m_0:function(){this.$k_0||(this.$k_0=new $h.Entities(this.$0_0.entities,this.$0_0.filteredEntities,this.get_$38_0(),this.$B_0));return this.$k_0},$2K_0:function(n){var t=this.$m_0();return t.$3s_0(n)},$1V_0:function(n){var t=this.$m_0();return t.$1V_0(n)},$1Y_0:function(){return this.$0_0.regExMatches?this.$0_0.regExMatches:null},$2R_0:function(n){var t=this.$1Y_0();return!t||!t[n]?null:t[n]},$A_0:function(){OSF.DDA.OutlookAppOm.$G(this.$B_0)},$1D_0:function(n){var i=this.$0_0[n];if($h.ScriptHelpers.isNullOrUndefined(i))return[];for(var r=[],t=0;t<i.length;t++)$h.ScriptHelpers.isNullOrUndefined(i[t])||(r[t]=new $h.EmailAddressDetails(i[t]));return r},$2z_0:function(){var t=this.$0_0.attachments;if($h.ScriptHelpers.isNullOrUndefined(t))return[];for(var i=[],n=0;n<t.length;n++)$h.ScriptHelpers.isNullOrUndefined(t[n])||(i[n]=new $h.AttachmentDetails(t[n]));return i},$2q_0:function(){var i=1;var r=2;var n=3;var t=this.$0_0.permissionLevel;if($h.ScriptHelpers.isUndefined(this.$B_0))return 0;switch(t){case i:return 1;case n:return 2;case r:return 3;default:return 0}}};$h.LoadDictionaryRequest=function(n,t,i,r){$h.LoadDictionaryRequest.initializeBase(this,[r]);this.$1F_1=n;this.$1J_1=t;this.$3_1=i};$h.LoadDictionaryRequest.prototype={$1J_1:null,$1F_1:null,$3_1:null,handleResponse:function(n){if(n.wasSuccessful){var i=n[this.$1J_1];var t=JSON.parse(i);this.createAsyncResult(this.$1F_1(t),0,0,null)}else this.createAsyncResult(null,1,9020,n.errorMessage);this.$3_1(this.$P_0)}};$h.ProxyRequestBase=function(n){$h.ProxyRequestBase.initializeBase(this,[n])};$h.ProxyRequestBase.prototype={handleResponse:function(n){if(n.wasProxySuccessful){this.set_$2i_1(n.statusCode);this.set_$2j_1(n.statusDescription);this.set_$1g_1(n.body);this.createAsyncResult(this.get_$1g_1(),0,0,null)}else{this.set_$2i_1(500);this.set_$2j_1("Error");var t=n.errorMessage;this.set_$1g_1(t);this.createAsyncResult(null,1,9020,t)}this.$4g_1(n);this.$35_1()},$1j_1:function(){throw Error.create("DOMException",{code:11,message:"INVALID_STATE_ERR"});},$35_1:function(){var n=this;this.$1B_1(2,function(){n.$1B_1(3,function(){n.$1B_1(4,null)})})},$1B_1:function(n,t){this.set_$1f_1(n);var i=this;window.setTimeout(function(){try{i.$2s_1()}finally{$h.ScriptHelpers.isNullOrUndefined(t)||t()}},0)},$2t_1:function(){this.get_$1f_1()!==1&&this.$1j_1();this.$1d_0&&this.$1j_1()}};$h.RequestBase=function(n){this.$1o_0=n};$h.RequestBase.prototype={$1d_0:!1,$P_0:null,$1o_0:null,get_asyncResult:function(){return this.$P_0},$1i_0:function(n,t,i){this.$1d_0=!0;var r=this;OSF.DDA.OutlookAppOm.$2.$E_0(n,t,i,function(n,t){n?r.createAsyncResult(null,1,9017,String.format(_u.ExtensibilityStrings.l_InternalProtocolError_Text,n)):r.handleResponse(t)})},createAsyncResult:function(n,t,i,r){this.$P_0=OSF.DDA.OutlookAppOm.$2.createAsyncResult(n,t,i,this.$1o_0,r)}};$h.SaveDictionaryRequest=function(n,t){$h.SaveDictionaryRequest.initializeBase(this,[t]);$h.ScriptHelpers.isNullOrUndefined(n)||(this.$3_1=n)};$h.SaveDictionaryRequest.prototype={$3_1:null,handleResponse:function(n){n.wasSuccessful?this.createAsyncResult(null,0,0,null):this.createAsyncResult(null,1,9020,n.errorMessage);$h.ScriptHelpers.isNullOrUndefined(this.$3_1)||this.$3_1(this.$P_0)}};$h.ScriptHelpers=function(){};$h.ScriptHelpers.isNull=function(n){return null===n};$h.ScriptHelpers.isNullOrUndefined=function(n){return $h.ScriptHelpers.isNull(n)||$h.ScriptHelpers.isUndefined(n)};$h.ScriptHelpers.isUndefined=function(n){return n===undefined};$h.ScriptHelpers.dictionaryContainsKey=function(n,t){return Object.isInstanceOfType(n)?t in n:!1};$h.ScriptHelpers.isNonEmptyString=function(n){return n?String.isInstanceOfType(n):!1};OSF.DDA.OutlookAppOm.registerClass("OSF.DDA.OutlookAppOm");OSF.DDA.Settings.registerClass("OSF.DDA.Settings");$h.ItemBase.registerClass("$h.ItemBase");$h.Item.registerClass("$h.Item",$h.ItemBase);$h.Appointment.registerClass("$h.Appointment",$h.Item);$h.ComposeItem.registerClass("$h.ComposeItem",$h.ItemBase);$h.AppointmentCompose.registerClass("$h.AppointmentCompose",$h.ComposeItem);$h.AttachmentConstants.registerClass("$h.AttachmentConstants");$h.AttachmentDetails.registerClass("$h.AttachmentDetails");$h.Body.registerClass("$h.Body");$h.ComposeBody.registerClass("$h.ComposeBody",$h.Body);$h.ComposeRecipient.registerClass("$h.ComposeRecipient");$h.ComposeLocation.registerClass("$h.ComposeLocation");$h.ComposeSubject.registerClass("$h.ComposeSubject");$h.ComposeTime.registerClass("$h.ComposeTime");$h.Contact.registerClass("$h.Contact");$h.CustomProperties.registerClass("$h.CustomProperties");$h.Diagnostics.registerClass("$h.Diagnostics");$h.EmailAddressDetails.registerClass("$h.EmailAddressDetails");$h.Entities.registerClass("$h.Entities");$h.ReplyConstants.registerClass("$h.ReplyConstants");$h.AsyncConstants.registerClass("$h.AsyncConstants");Office.cast.item.registerClass("Office.cast.item");$h.Message.registerClass("$h.Message",$h.Item);$h.MeetingRequest.registerClass("$h.MeetingRequest",$h.Message);$h.MeetingSuggestion.registerClass("$h.MeetingSuggestion");$h.MeetingSuggestionTimeDecoder.registerClass("$h.MeetingSuggestionTimeDecoder");$h.ExtractedDate.registerClass("$h.ExtractedDate");$h.PreciseDate.registerClass("$h.PreciseDate",$h.ExtractedDate);$h.RelativeDate.registerClass("$h.RelativeDate",$h.ExtractedDate);$h.MessageCompose.registerClass("$h.MessageCompose",$h.ComposeItem);$h.NotificationMessages.registerClass("$h.NotificationMessages");$h.OutlookErrorManager.registerClass("$h.OutlookErrorManager");$h.OutlookErrorManager.OutlookErrorCodes.registerClass("$h.OutlookErrorManager.OutlookErrorCodes");$h.OutlookErrorManager.OsfDdaErrorCodes.registerClass("$h.OutlookErrorManager.OsfDdaErrorCodes");$h.PhoneNumber.registerClass("$h.PhoneNumber");$h.TaskSuggestion.registerClass("$h.TaskSuggestion");$h.UserProfile.registerClass("$h.UserProfile");$h.CommonParameters.registerClass("$h.CommonParameters");$h.RequestBase.registerClass("$h.RequestBase");$h.ProxyRequestBase.registerClass("$h.ProxyRequestBase",$h.RequestBase);$h.EwsRequest.registerClass("$h.EwsRequest",$h.ProxyRequestBase);$h.InitialData.registerClass("$h.InitialData");$h.LoadDictionaryRequest.registerClass("$h.LoadDictionaryRequest",$h.RequestBase);$h.SaveDictionaryRequest.registerClass("$h.SaveDictionaryRequest",$h.RequestBase);$h.ScriptHelpers.registerClass("$h.ScriptHelpers");OSF.DDA.OutlookAppOm.asyncMethodTimeoutKeyName="__timeout__";OSF.DDA.OutlookAppOm.$2a=100;OSF.DDA.OutlookAppOm.$2b=255;OSF.DDA.OutlookAppOm.maxBodyLength=32768;OSF.DDA.OutlookAppOm.$2Z=255;OSF.DDA.OutlookAppOm.$2Y=1e6;OSF.DDA.OutlookAppOm.$2=null;$h.AttachmentConstants.maxAttachmentNameLength=255;$h.AttachmentConstants.maxUrlLength=2048;$h.AttachmentConstants.maxItemIdLength=200;$h.AttachmentConstants.maxRemoveIdLength=200;$h.AttachmentConstants.attachmentParameterName="attachments";$h.AttachmentConstants.attachmentTypeParameterName="type";$h.AttachmentConstants.attachmentUrlParameterName="url";$h.AttachmentConstants.attachmentItemIdParameterName="itemId";$h.AttachmentConstants.attachmentNameParameterName="name";$h.AttachmentConstants.attachmentTypeFileName="file";$h.AttachmentConstants.attachmentTypeItemName="item";$h.AttachmentDetails.$19=[Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File,Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Item];$h.Body.coercionTypeParameterName="coercionType";$h.ComposeRecipient.displayNameLengthLimit=255;$h.ComposeRecipient.maxSmtpLength=571;$h.ComposeRecipient.recipientsLimit=100;$h.ComposeRecipient.totalRecipientsLimit=500;$h.ComposeRecipient.addressParameterName="address";$h.ComposeRecipient.nameParameterName="name";$h.ComposeLocation.locationKey="location";$h.ComposeLocation.maximumLocationLength=255;$h.ComposeSubject.maximumSubjectLength=255;$h.ComposeTime.timeTypeName="TimeProperty";$h.ComposeTime.timeDataName="time";$h.Diagnostics.outlookAppName="Outlook";$h.Diagnostics.outlookWebAppName="OutlookWebApp";$h.EmailAddressDetails.$1K="";$h.EmailAddressDetails.$1h=[Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Organizer,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Tentative,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Accepted,Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Declined];$h.EmailAddressDetails.$1e=[Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.DistributionList,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.User,Microsoft.Office.WebExtension.MailboxEnums.RecipientType.ExternalUser];$h.Entities.$16=["Addresses","EmailAddresses","Urls","PhoneNumbers","TaskSuggestions","MeetingSuggestions","Contacts","FlightReservations","ParcelDeliveries"];$h.ReplyConstants.htmlBodyKeyName="htmlBody";$h.AsyncConstants.optionsKeyName="options";$h.AsyncConstants.callbackKeyName="callback";$h.AsyncConstants.asyncResultKeyName="asyncResult";$h.MeetingSuggestionTimeDecoder.$1u=new Date("0001-01-01T00:00:00Z");$h.NotificationMessages.maximumKeyLength=32;$h.NotificationMessages.maximumIconLength=32;$h.NotificationMessages.maximumMessageLength=150;$h.NotificationMessages.notificationsKeyParameterName="key";$h.NotificationMessages.notificationsTypeParameterName="type";$h.NotificationMessages.notificationsIconParameterName="icon";$h.NotificationMessages.notificationsMessageParameterName="message";$h.NotificationMessages.notificationsPersistentParameterName="persistent";$h.OutlookErrorManager.errorNameKey="name";$h.OutlookErrorManager.errorMessageKey="message";$h.OutlookErrorManager.$1c=!1;$h.OutlookErrorManager.OutlookErrorCodes.attachmentSizeExceeded=9e3;$h.OutlookErrorManager.OutlookErrorCodes.numberOfAttachmentsExceeded=9001;$h.OutlookErrorManager.OutlookErrorCodes.internalFormatError=9002;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentId=9003;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentPath=9004;$h.OutlookErrorManager.OutlookErrorCodes.cannotAddAttachmentBeforeUpgrade=9005;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeletedBeforeUploadCompletes=9006;$h.OutlookErrorManager.OutlookErrorCodes.attachmentUploadGeneralFailure=9007;$h.OutlookErrorManager.OutlookErrorCodes.attachmentToDeleteDoesNotExist=9008;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeleteGeneralFailure=9009;$h.OutlookErrorManager.OutlookErrorCodes.invalidEndTime=9010;$h.OutlookErrorManager.OutlookErrorCodes.htmlSanitizationFailure=9011;$h.OutlookErrorManager.OutlookErrorCodes.numberOfRecipientsExceeded=9012;$h.OutlookErrorManager.OutlookErrorCodes.noValidRecipientsProvided=9013;$h.OutlookErrorManager.OutlookErrorCodes.cursorPositionChanged=9014;$h.OutlookErrorManager.OutlookErrorCodes.invalidSelection=9016;$h.OutlookErrorManager.OutlookErrorCodes.accessRestricted=9017;$h.OutlookErrorManager.OutlookErrorCodes.genericTokenError=9018;$h.OutlookErrorManager.OutlookErrorCodes.genericSettingsError=9019;$h.OutlookErrorManager.OutlookErrorCodes.genericResponseError=9020;$h.OutlookErrorManager.OutlookErrorCodes.saveError=9021;$h.OutlookErrorManager.OutlookErrorCodes.messageInDifferentStoreError=9022;$h.OutlookErrorManager.OutlookErrorCodes.duplicateNotificationKey=9023;$h.OutlookErrorManager.OutlookErrorCodes.notificationKeyNotFound=9024;$h.OutlookErrorManager.OutlookErrorCodes.numberOfNotificationsExceeded=9025;$h.OutlookErrorManager.OutlookErrorCodes.ooeInvalidDataFormat=2006;$h.OutlookErrorManager.OsfDdaErrorCodes.ooeCoercionTypeNotSupported=1e3;$h.CommonParameters.asyncContextKeyName="asyncContext";$h.ScriptHelpers.emptyString="";OSF.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);this._settings=n.get_appName()==OSF.AppName.OutlookWebApp?this._initializeSettings(n,!1):this._initializeSettings(!1);n.appOM=new OSF.DDA.OutlookAppOm(n,this._webAppState.wnd,t)}